-
I have 3 dropdowns on the same screen. 2nd dropdown is populated based on the selection of 1st dropdown and the 3rd dropdown is populated based on the selection of the 2nd dropdown. The selection of each dropdown is saved in ProblemThe user has selected values for all 3 dropdowns. Then the user goes and changes the value of the 1st dropdown. In this case, Here is the minimal code for my 3 dropdowns.
Expected behaviourI want to reset and hide the 2nd and 3rd dropdowns if the user changes the value of the 1st dropdown again. But I cannot do this because I don't which dropdown was changed because all 3 have values set in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@dulajra I have the same use-case where I check Something like: if q.args.dropdown1 and q.args.dropdown1 != q.client.dropdown1:
q.client.dropdown1 = q.args.dropdown1
reset 2nd and 3rd dropdown
elif q.args.dropdown2 and q.args.dropdown2 != q.client.dropdown2:
q.client.dropdown2 = q.args.dropdown2
reset 3rd dropdown |
Beta Was this translation helpful? Give feedback.
@dulajra I have the same use-case where I check
change in value
instead.Something like: