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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Uncheck a toggle butto...
Power Apps
Unanswered

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,297 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,297 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,297 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard