cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ttaylor
Helper III
Helper III

Dropdown not resetting on navigation

I'm having a problem with my dropdown not refreshing when users navigate to the page. It was working and now it's not. When users make a selection in the drop down and then leave the page, that same information remains if they go back instead of resetting to "-" 

 

I have the following:

 

MAIN SCREEN

OnSelect = Navigate(OrgScreen); ResetForm(form_OrgInfo); Reset(OrgDropDown);

 

 

OrgScreen

Drop Down Properties:

     Default = If(!IsBlank(varSelectedOrg), varSelectedOrg.Organization, "-")

     Items = Sort(SP1,Organization)

     OnSelect = Set(a,OrgDropDown.Selected)

 

Do you know why my drop down is not resetting?

 

Thanks so much!!

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @ttaylor

Did you reset the varSelectedOrg's value?

Based on your description, the drop down's default will become "-" only if the varSelectedOrg is blank.

So if you want to reset the drop down to "-", please do not forget to change this variable value.

Try this formula:

Navigate(OrgScreen); ResetForm(form_OrgInfo); Sset(varSelectedOrg,Blank());Reset(OrgDropDown);

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you so much!! That worked. 

View solution in original post

2 REPLIES 2
v-yutliu-msft
Community Support
Community Support

Hi @ttaylor

Did you reset the varSelectedOrg's value?

Based on your description, the drop down's default will become "-" only if the varSelectedOrg is blank.

So if you want to reset the drop down to "-", please do not forget to change this variable value.

Try this formula:

Navigate(OrgScreen); ResetForm(form_OrgInfo); Sset(varSelectedOrg,Blank());Reset(OrgDropDown);

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you so much!! That worked. 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (58,395)