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 / Patch and reset inputs
Power Apps
Answered

Patch and reset inputs

(0) ShareShare
ReportReport
Posted on by 100

Instead of a form, I utilized a container with inputs in order to add to my sharepoint list. 

 

On my SharePoint list I have ['person', 'location', 'purchasing_power', 'has_vehicle'] and a few other columns.

 

I have finally successfully patched using Office365-Search Users, BingMaps and then text/value inputs. 

 

To reset the form i use ";reset(location), reset(person), etc" for all of the inputs. There has to be an easier way. 

 

What is the best way to manage input's that update a SharePoint List to cancel/update/create, etc.?

 

(I am avoiding using a Form as these inputs will be used for more than one list)

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,819 Super User 2026 Season 1 on at

    Hi @PBInonpro ,

     

    Try selecting all the controls in the container and then set their Reset property to locReset. The insert a little code after your Patch function:

     

    UpdateContext({locReset:true});
    UpdateContext({locReset:false});

     

    This will reset all controls that have this variable set in the Reset property.

  • PBInonpro Profile Picture
    100 on at

    PERFECT! thankyou, 

    So next question; how to update from a gallery instead of adding new? 

    I think I understand the flow of operations. Can you run by, to ensure I fully understand. And if I had to spend more time to dig through myself, where would I have found this information? 

    You set a variable(?) correct, and can technically name it anything. But what does the 'true' than 'false' do? 

    I originally tried resetting every control but then it was resetting on submit before the data was transferred to sharepoint!. Thanks

  • BCBuizer Profile Picture
    22,819 Super User 2026 Season 1 on at

    Hi @PBInonpro ,

     

    I don't really understand your new question, but want to ask you to open a new topic for that in any case.

     

    Indeed the UpdateContext function is used to set the value of a variable in the context of a screen.

     

    Indeed you can pick any any name for your variable. In the above case I chose "locReset", but you can replace it with anything else.

     

    By changing the value of the variable to true, it will reset the controls as the value they receive for the set Reset property changes to true as well. The variable the needs to set back to false to reset this mechanism so it will work again the next time the button is selected.

     

    The order in which you have the statements in the formula is important because it determines the order in which they are executed. 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 271 Super User 2026 Season 1

Last 30 days Overall leaderboard