Hi Guys,
i want to use a toggle button for simply saving the prior form.
I changed the property "OnCheck" to:
If(ErrorMessage4.Visible=true, Toggle1.Value=false, SubmitForm(SharePointForm1))
I have severals fields that are required to fill out. So if the Error Message is shown the toggle should reset otherwise the toggle button can stay at the true position but my form should be submitted. And furthermore more it should redirect me the Home page of the SharePoint site.
I probably miss something but I dont know what...
BR
Pitfrog
Solved! Go to Solution.
Hi @Anonymous ,
Since toggle's value can only be changed by you clicking on the toggle, so the formula "Toggle1.Value=false" will not work.
I suggest you set the toggle's Default to false and change the toggle's value by using Reset function.
I've made a similar test for your reference:
1)the formula need to be set to inside the formula that set when the ErrorMessage4 will display.
For example:
I set a textinput's OnChange:
If(IsNumeric(TextInput1.Text),Notify("wrong",NotificationType.Warning)&&Reset(Toggle1))
2)Set the Toggle's Default: false
Set the Toggle's OnCheck:
If(ErrorMessage4.Visible=false,SubmitForm(SharePointForm1))
Then, if the value inside the textinput is number, a warning will appear and the toggle''s value will become false.
Best regards,
Hi @Anonymous ,
Since toggle's value can only be changed by you clicking on the toggle, so the formula "Toggle1.Value=false" will not work.
I suggest you set the toggle's Default to false and change the toggle's value by using Reset function.
I've made a similar test for your reference:
1)the formula need to be set to inside the formula that set when the ErrorMessage4 will display.
For example:
I set a textinput's OnChange:
If(IsNumeric(TextInput1.Text),Notify("wrong",NotificationType.Warning)&&Reset(Toggle1))
2)Set the Toggle's Default: false
Set the Toggle's OnCheck:
If(ErrorMessage4.Visible=false,SubmitForm(SharePointForm1))
Then, if the value inside the textinput is number, a warning will appear and the toggle''s value will become false.
Best regards,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
207 | |
188 | |
80 | |
50 | |
38 |
User | Count |
---|---|
305 | |
255 | |
121 | |
73 | |
56 |