Try with following code
$("#customfield_10571").closest('div.field-group').hide(); $("#customfield_10571").closest('div.field-group').show();
Why do you need Javascript to do it? You can do it in field configurations or take it off from the screens.
But if you must do it using Javascript, here is a snippet that will work for any custom field including version picker.
AJS.$("#customfield_10000").parent().hide();
Where customfield id is 10000.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I should specify few more things, I want to hide it even in view screen, here is my current code
<script type="text/javascript">
version = document.getElementById('customfield_10609');
version.closest('div.field-group').hide();
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you want to hide the field in view screen just remove the field from view screen,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The above code does it only for edit. Try Prasad's solution if you want to hide it from View as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.