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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Toggle Button

(0) ShareShare
ReportReport
Posted on by

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.

Categories:
  • WarrenBelz Profile Picture
    156,763 Most Valuable Professional on at

    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

  • eka24 Profile Picture
    20,925 on at

    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.

    Consider Checking My Youtube Channel

  • Ouryuusama Profile Picture
    on at

    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).

  • WarrenBelz Profile Picture
    156,763 Most Valuable Professional on at

    Hi @Ouryuusama ,

    On that button - add the save code after the check

  • Ouryuusama Profile Picture
    on at

    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.キャプチャ.PNG

  • Verified answer
    WarrenBelz Profile Picture
    156,763 Most Valuable Professional on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard