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
click on above button , navigated to this new page
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.?
Ooh, That's correct @RandyHayes thanks for the advice., regards...
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.
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)" 😉
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!
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?
Hi @RandyHayes , Thanks much .I got rid of it , But it empties my second form completely
I just have On Select as "Navigate(Screen1,ScreenTransition.Cover);"
Get rid of the semicolon on the end of the formula.
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
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
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1