The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hide same fields when selecting different options?

Paty Tanaami
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2020

Hi!

I had a behavior set and working to hide certain fields when one option of checkboxes was selected. Now I need these same fields to be hidden when another option of checkboxes is selected.

Adding the second option to the same code didn't work; any way of doing that?

I want "Timed" to trigger the hidden additional field to show, but also if "Timed & Untimed" to trigger this.

if (selectedOption == "Timed") {
selectUNStyle.setHidden(false)
selectUNStyle.setRequired(true)
}

else {
selectUNStyle.setHidden(true)
selectUNStyle.setRequired(false)
}

 

Thanks!

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events