cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Eben98
Advocate II
Advocate II

Toggle validation

Hi all,

 

I have 2 toggles.

This is my problem.

When I turn on a toggle button 1 the other toggle button 2 should be off.

when i turn on toggle button 2 the toggle button1 should be off.  

How can this be done ?

 

 

Thanks in Advance .

 

Best Wishes,

Eben.

3 REPLIES 3
eka24
Super User
Super User

Consider this:

In the Default of Toggle1 put: !Toggle2.Value

 

In the Default of Toggle2 put: !Toggle1.Value

------------

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.

Hi @eka24 ,

 

It work one way , but it doesn't work the other way.

Power apps gives me this error tat circular reference of properties are not allowed.

Can u suggest another way.

 

 

Best Wishes,

Eben.

hi @Eben98 ,

 

you can use variables for this,

 

put toggle1.default = t1,toggle1.onselect = UpdateContext({t2 : !t2})

put toggle2.default = t2,toggle2.onselect = UpdateContext({t1 : !t1})

 

But, this may not work in some criteria's 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,268)