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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set toggles to false i...
Power Apps
Answered

Set toggles to false if another toggle is set to true

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I have 4x toggles on a page (Toggle1, Toggle2, Toggle3, Toggle4), only one of these toggles should be selected and I want to make it so that the user can't accidently select more than one. Note that I do have toggles on other pages that I need to exclude from this. 

 

I've managed to do this based on one of the toggles being set to true but I can't seem to figure out how to get all of the different possible combinations involved so hopefully there's a simple way of doing this that i'm missing. What i've done so far is:

On Toggle1 Set OnCheck to:

Reset(Toggle2;Toggle3;Toggle4);Set(varRHOToggle,Toggle1.Value)

 

On Toggle2, 3 and 4 Set Default to:

If(varRHOToggle,false)

 

Help as always is very much appreciated! Thanks

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @Dave-ITMan ,

    On the OnCheck of them all, using the other three toggles (example Toggle1)

    If(
     Toggle2.Value || Toggle3.Value || Toggle4.Value,
     Reset(Self)
    )

     They simply will not set if one of the others is (you need to turn the other one off first)

     

    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

  • Dave-ITMan Profile Picture
    on at

    Hi @WarrenBelz 

     

    You are a legend, thank you very much! 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard