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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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