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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

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

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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