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

Community site session details

Session Id :
Power Apps
Unanswered

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:
I have the same question (0)
  • WarrenBelz Profile Picture
    152,853 Most Valuable Professional on at
    Re: Toggle Button

    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,923 on at
    Re: Toggle Button

    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
    Re: Toggle Button

    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
    152,853 Most Valuable Professional on at
    Re: Toggle Button

    Hi @Ouryuusama ,

    On that button - add the save code after the check

  • Ouryuusama Profile Picture
    on at
    Re: Toggle Button

    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
    152,853 Most Valuable Professional on at
    Re: Toggle Button

    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

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard