Behaviours Plugin - how to display a blank free-text field if "Other" field is selected.

I've been looking at the Behaviours plugin, I want a blank free-text field to appear if "Other" field selection is selected in another field. Unfortunately, I can't get it to work due to my lack code writing knowledge.

1 answer

1 accepted

0 vote

put the validator on the select list. The validator code would be something like:

def selectList = getFieldById(getFieldChanged())
def blankTextField = getFieldByName("Some Text Field")
blankTextField.setHidden(selectList.getValue() == "Other")

You need to create a text field called "Some Text Field" and add to project, screens etc.

Thanks for your response Jamie. I haven't gotten a chance to try the validator yet because I came across another issue related to the Behaviour Plugin. I'm working on another project and whenever I tried to create an issue, I receive an error message "Error creating issue: Cannot invoke method getValidators() on null object". If I disable the Behaviour plugin, then it works and I'm able to create an issue. We are using JIRA v. 5.1.7 and I've tried running Behaviour v. 0.5.2 and 0.5.3. Thoughts?

Thank you,


Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

173 views 0 4
Read article

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