Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Fgarza_2020 Profile Picture
    31 on at
    Re: Uncheck a toggle button when I click a Submit Button

    Ooh, That's correct @RandyHayes  thanks for the advice., regards...

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Uncheck a toggle button when I click a Submit Button

    @Fgarza_2020 

    The only problem with that is that you are setting the reset to true...how will you reset it again?  You need to set it to false after you set it to true.

    However, if you have a button, then you don't need any of the variables, just set the Reset property to: yourButton.Pressed  The control will reset whenever the button is pressed.

  • Fgarza_2020 Profile Picture
    31 on at
    Re: Uncheck a toggle button when I click a Submit Button

    It works fine for me but, I put a Variable on the reset property (VArToggle), and on the On select property of the "Cancel button" I put set the Variable to value true " Set(varToggle, true)" 😉

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Uncheck a toggle button when I click a Submit Button

    @JayashreeKrish 

    Good deal!  Just remember,  you cannot issue a Reset statement on controls that are a part of another control like a Gallery or Form.  So the trick is to set its Reset property to some other changing value.  In this case, the Pressed property of the Button is perfect.

    Enjoy!

  • JayashreeKrish Profile Picture
    270 on at
    Re: Uncheck a toggle button when I click a Submit Button

    Thanks much @RandyHayes  Sorted Out Now.

    Marked solution as accepted.

     

    Thanks @GR29 

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Uncheck a toggle button when I click a Submit Button

    @JayashreeKrish 

    What we added to the toggle will not impact your second screen, so you have something else at play there.

    Are there some Visible formulas on anything on that screen that are causing it not to show anything?

  • JayashreeKrish Profile Picture
    270 on at
    Re: Uncheck a toggle button when I click a Submit Button

    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);"

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Uncheck a toggle button when I click a Submit Button

    @JayashreeKrish 

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

  • JayashreeKrish Profile Picture
    270 on at
    Re: Uncheck a toggle button when I click a Submit Button

    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

     

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Uncheck a toggle button when I click a Submit Button

    @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

     

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1