hide/visible custom field on depending of checkbox field

Hi everybody!

I have 1 custom field multi checkbox and 3 option. Also I have 3 custom field type text. I need hide text field on depending where I'm not put a checkbox. Any idea do you have ? :) I hope on your answer and help!

1 answer

1 accepted

0 vote
David Chan Atlassian Team Feb 04, 2013

There's no built-in functionality that does this, but you might want to try taking a look at:

Thanks David!

Bahaviour plugin is not what I need. Yes, I can hide/visible custom field, but only on depending some permissions or compare users in role/groups. I don't know how to set exactly option value in multi checkbox custom field that hide/visible field.

Another above solution, we have a script:

<script type="text/javascript">
function toggleXXXXSelect() {
if (checkbox.checked)

Unknown macro:

Unknown macro: { toggleXXXXSelect.style.display = ''; }

else

Unknown macro:

Unknown macro: { toggleXXXXSelect.style.display='none'; }

};
checkbox = document.getElementById('customfield_10111_1');
toggleXXXXSelect = document.getElementById('customfield_10400FieldArea');

// Hide the target field by default
toggleXXXXSelect.style.display = 'none';

checkbox.onclick=toggleXXXXSelect;
toggleXXXXSelect();
</script>

unfortunately, i'm not strong in javascript, could you tell me please, what is toggleXXXXSelect(). Is it real name function or not? So, could you correct this script?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

772 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you