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 / Uncheck a toggle butto...
Power Apps
Answered

Uncheck a toggle button when I click a Submit Button

(0) ShareShare
ReportReport
Posted on by 270

Hi team,

 

I created a canvas app from sharepoint list.

In screen 1 I have a form with toggle buttton.

Initially when I check this, it navigates to new page

JayashreeKrish_0-1628692505624.png

 

click on above button , navigated to this new page

JayashreeKrish_1-1628692538319.png

 

When I click Close  in new page , it should go back to original page (i am able to navigate ) and uncheck the toggle (having issue in this part) Please help

 

How do I uncheck a toggle button when I click on Submit Button.?

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JayashreeKrish 

    In the OnSuccess action of your form, add the following:

       Reset(yourToggleControlName)

     

    I hope this is helpful for you.

  • JayashreeKrish Profile Picture
    270 on at

    Hi @RandyHayes 

    I have two forms in two screens

    Screen 1: Form 1

    Screen 2 Form 2

     

    When I click in Form 1, It should go to screen 2,

    When I click in Submit in Form 2, it should go to screen 1

     

    I have this command on the button; But its  not working.

    Reset(DataCardValue30);

     

    My toggle button in Screen 1 

    JayashreeKrish_0-1628699420204.png

     

    Screen 2:

    With my button and error message

    JayashreeKrish_1-1628699524896.png

     

  • Roma Gupta Profile Picture
    167 on at

    @JayashreeKrish - set the default property of toggle to false.

  • JayashreeKrish Profile Picture
    270 on at

    HI @GR29  , I set it to false,

    Still it is not resetting

     

     

  • Roma Gupta Profile Picture
    167 on at

    @JayashreeKrish - might be refresh issue? I did the same & when I reload the app, it is default to false/no. Alternatively, when you are navigating it on close, is that a new form? if yes, you can put a If condition & set toggle to false

  • JayashreeKrish Profile Picture
    270 on at

    Hi @GR29  It is a new form in same application.

    I have given Reset(DataCardValue30)

    is the syntax correct ?

    and set its Default to false

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JayashreeKrish 

    Ah yes, you cannot reset controls in forms of galleries.

     

    In this case it is just as easy to tie your DataCardValue30 to your Close button (I believe that is the one you are wanting).

    So, set the Reset property of the Toggle control to : yourCloseButton.Pressed

     

     

     

  • JayashreeKrish Profile Picture
    270 on at

    Hi @RandyHayes  Thanks again

    But still I am getting error , Is my syntax correct ? 

     

    In RESET of toggle I have used Button2_2.Pressed; 

    Button2_2 is present in Form 2

    Toggle is present in Form 1

    JayashreeKrish_0-1628702704772.png

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JayashreeKrish 

    Get rid of the semicolon on the end of the formula.

  • JayashreeKrish Profile Picture
    270 on at

    Hi @RandyHayes  , Thanks much .I got rid of it , But it empties my second form completely

    JayashreeKrish_0-1628703097672.png

     

    I just have On Select as "Navigate(Screen1,ScreenTransition.Cover);"

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 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard