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

This widget could not be displayed.

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,

Pei

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

456 views 3 17
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