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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events