Skip to content

How to identify the event source accurately? #820

Answered by vopani
dulajra asked this question in Q&A
Discussion options

You must be logged in to vote

@dulajra I have the same use-case where I check change in value instead.

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dulajra
Comment options

Answer selected by dulajra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants