cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted
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
Highlighted
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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (12,364)