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 / Reset mutliple forms
Power Apps
Unanswered

Reset mutliple forms

(0) ShareShare
ReportReport
Posted on by 59

I have a app screen that has multiple forms with toggle button for progress. When they have all been verified by a supervisor, I wish to have the ability for a user to reset them back to their "not complete" status, either by another button on a different screen (part of the progress of the verification is a final QAQC check by a different user) or by a user on the same screen as the form. (does the view edit form matter??)I am trying to use a Reset function but it wont work. What is the best solution? Thanks.

Categories:
I have the same question (0)
  • Thss1252 Profile Picture
    8 on at

    If you use the ResetForm() function with semi-colons  to separate the functions you'll be able to reset both forms, even on separate pages. Such as: ResetForm(Form1);ResetForm(Form2);

  • Kopistars11 Profile Picture
    59 on at

    Added it in the OnSelect as instructed and it doesnt work. The forms stay the same.

  • Akah Mandela Profile Picture
    445 on at
    • If you want to reset the forms and toggles from another button on a different screen, you can use the OnSelect property of the button to call the ResetForm function for each form, and set a context variable to true. Then, you can use the OnVisible property of the screen that contains the forms to set the same context variable to false. Finally, you can use the Reset property of the toggle controls to bind to the context variable. For example, you can write:

     

    // OnSelect property of the button
    ResetForm(Form1); ResetForm(Form2); ResetForm(Form3); // replace with your form names
    UpdateContext({resetToggles: true})
    
    // OnVisible property of the screen
    UpdateContext({resetToggles: false})
    
    // Reset property of the toggle controls
    resetToggles
    ​

     

  • Kopistars11 Profile Picture
    59 on at

    Works  but reset them to to be true.

  • Akah Mandela Profile Picture
    445 on at

    you can change the value of the context variable in the OnSelect property of the button. For example, you can write:

    UpdateContext({resetToggles: false})

    This will set the resetToggles variable to false, which will reset the toggles to their default values. You can also change the default values of the toggles in the Default property of each toggle control. For example, you can write:

    Default: false

    This will make the toggle off by default. You can also use other expressions or values to set the default state of the toggles.


    Do not forget to like if it help out or mark as complete if the help lead to a success 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 993

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 545

Last 30 days Overall leaderboard