Hello! I am relatively new to Power Apps and I would like some help. I am making something like "Terms and Conditions" where the user has to toggle to "Yes" which means they have read the "Terms and Conditions" before they can submit the form. Which means the Toggle value has to be "Yes" in order for them to be able to submit the form.
Solved! Go to Solution.
Hi @Ouryuusama ,
In SharePointIntegration in the OnSave function
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Ouryuusama ,
In your code submitting the form
If(
!YourToggleName.Value,
Notify("You need to answer yes to Terms and conditions",Error),
SubmitForm(YourFormName)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
In the OnSelect Property of the SubmitButton:
If(Toggle1.Value,SubmitForm(FormName),Notify("Turn the Toggle to Yes before you can save"))
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Thank you very much. Where should I input this code if I don't have a physical submit button. The submit button I am using is the default "save button" that appears on Sharepoint List (does not appear inside Power Apps form).
As I have said, there is no save button inside the Canvas. The button appears only in Sharepoint List when I make new item for the List. Please see image below.
Hi @Ouryuusama ,
In SharePointIntegration in the OnSave function
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
User | Count |
---|---|
254 | |
106 | |
95 | |
50 | |
39 |