Lets say I have an Interface with 2 Dropdowns. Lets call them Dropdown1 and Dropdown2. Both have Values Yes and No.
If User selects Dropdown1 with Value Yes, then Dropdown2 should automatically be set to No and it should be greyed out or disabled so that User cannot change it to Yes.
Please advise how we can accomplish this.
Regards,
Mahesh
Discussion posts and replies are publicly visible
An example
a!localVariables( local!drop1: { "Yes", "No" }, local!drop2: { "Yes", "No" }, local!save, local!save2, { a!dropdownField( placeholder: "please select", choiceLabels: local!drop1, choiceValues: local!drop1, value: local!save, saveInto: local!save ), a!dropdownField( placeholder: "please select", choiceLabels: local!drop2, choiceValues: local!drop2, value: if(local!save = "yes", "No", ""), saveInto: a!save(local!save2, save!value), disabled: if(local!save = "yes", true, false) ) } )
Thank you Prasanta Paul , appreciate the help here.