Showing results for 
Search instead for 
Did you mean: 

Set secondary dropdown to blank when primary one is blank

There are 2 dropdowns in the form and there is no relation between them. First I will select the first drop-down value next second dropdown value, again if I change first dropdown to blank value second drop-down should go blank. How to achieve this?

Super User
Super User

I'm not sure if you want to set the second one blank ONLY if the first is set to Blank or if the first one is changed at all after the second is set. 

If you want the latter functionality, set a variable in the Reset property on the second dropdown (varDDreset). Put this in the OnChange of the first dropdown: Set(varDDreset,true);Set(varDDrteset,false)

If you you want the former then in the reset property of the second dropdown put this: If(IsBlank(drop1.Selected.Value),true,false)

I hand typed these so there could be slight errors 

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,710)