How can i add onchange event in properties panel dropdown and poulate other dropdown

How can i add onchange event in properties panel dropdown and poulate other dropdown .

I have a IO and Condition dropdown in properties panel,
I have to populate condition dropdown based on IO selection. how can i get this done in Properties panel?