web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Clearing Context Varia...
Power Apps
Answered

Clearing Context Variables On Hidden

(0) ShareShare
ReportReport
Posted on by 6

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

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard