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
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
WarrenBelz
146,587
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional