cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
amgravs2
Level: Powered On

Clearing Context Variables On Hidden

Hi all,

 

I've made a form that allows users to pick from a gallery (dropdown menus did not work in this case). However, when a new user opens the form, instead of filling in with the selections they last made, or the standard ones I filled in on the sharepoint sheet, it autofills the previous user's selections. 

 

I.E

User1(new)->form with standard selections -> submits form

User2(new)->form with User1's selections->edits & submits form

User1(returning)->form with User2's selections

 

Is there a way to clear the context variables for that screen once the form has been submitted or canceled? I feel like there should be an option for the "On Hidden" property.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Clearing Context Variables On Hidden

1. Set the Reset property of the controls you want to reset the values in to "ResetFields"

2. onHidden say "UpdateContext(ResetFields:!ResetFields); UpdateContext(ResetFields:!ResetFields)"

 

this will toggle the reset property on then off and reset your fields.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Re: Clearing Context Variables On Hidden

1. Set the Reset property of the controls you want to reset the values in to "ResetFields"

2. onHidden say "UpdateContext(ResetFields:!ResetFields); UpdateContext(ResetFields:!ResetFields)"

 

this will toggle the reset property on then off and reset your fields.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (6,059)