cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerSäm
Helper V
Helper V

When one button is selected, the other should not be selected and the other way around

Hi all, I have the following problem. I want that when I select a button, the other button is not activated, but when I select the other butten, the current button is no longer selected.
Now it is so that when I select the first button, the second button is automatically selected, so at the same time (See image). But I don't want that. It should always go back and forth, depending on which button I select.

 

I did it with these formulas: (I used the same formula in both buttons)

 

OnSelect -> UpdateContext({pressedButton:!pressedButton})

PressedColor -> If(pressedButton=true; RGBA(65; 100; 110; 1); White)

PressedFill -> If(pressedButton=true; White; RGBA(65; 100; 110; 1))

 

I thank you already for your help

image.pngimage.png

1 ACCEPTED SOLUTION

Accepted Solutions
zmansuri
Super User
Super User

You don't need to write any code for that. It is by default property that only one button is selected at time. Remove those button and add again.

View solution in original post

1 REPLY 1
zmansuri
Super User
Super User

You don't need to write any code for that. It is by default property that only one button is selected at time. Remove those button and add again.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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 (1,284)