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 III
Super User III

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (36,605)