cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rikaylaj
New Member

Reset A Combobox

I am using a combobox to navigate to different pages. I need to reset the box so that the last selection is not there when you come back to the page that the combobox is on. On the screen if I use the action for On visible or On Hidden to reset the combobox it works in test mode but when I open it to actually use the app the screen just continuously resets and you cannot make a selection at all. If I set the reset selection to true on the combo box the box will never reset. I have tried different things and it either continuously resets so that you cannot select anything or it doesn't reset at all. Help!

1 ACCEPTED SOLUTION

Accepted Solutions
rikaylaj
New Member

I finally got it. When I removed my Else statement I was able to put my reset command in On Visible and it worked. 

View solution in original post

3 REPLIES 3
zmansuri
Super User
Super User

write your reset code after navigate code

Navigate(Screen1);

Reset(ComboBox1.Selected) OR Reset(ComboBox1.SelectedItems); whichever works

It resets it before you can pick anything from the dropdown box, so you can never make a selection. 

rikaylaj
New Member

I finally got it. When I removed my Else statement I was able to put my reset command in On Visible and it worked. 

Helpful resources

Announcements
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,714)