I'm using
Set(var1,Filter(Choices(test.status),Value="Reject"))
as found here to choose a value in a SharePoint list.
I'm also using
Button1.OnSelect = UpdateContext({ toggleValue: !toggleValue })
as found here to change the appearance of the button.
So my initial formula for all six buttons looked something like this before I learned that this affects all buttons at the same time.
OnSelect = Set(var1,Filter(Choices(test.status),Value="Reject"))&UpdateContext({ toggleValue: !toggleValue})
Color= If(toggleValue, Color.White, Color.Yellow)
I've updated each button with toggleValue1 or toggleValue2, etc. so each selection only affects the button that's pressed.
What I need help with is DEselecting a button when another button is pressed.
So if button 1 is selected the color goes to yellow. Then if button 2 is selected, button 1 text should turn white and button two text should go yellow.
Solved! Go to Solution.
For my Example I threw out 6 buttons, every one of them has the OnSelect of
Set(buttonName,Self)
and a Color of
If(buttonName=Self,White,HotPink)
This changes the button text color to white for whichever button was most recently pressed, while all others will be pink
For my Example I threw out 6 buttons, every one of them has the OnSelect of
Set(buttonName,Self)
and a Color of
If(buttonName=Self,White,HotPink)
This changes the button text color to white for whichever button was most recently pressed, while all others will be pink
I like the simplicity. Thanks!
User | Count |
---|---|
161 | |
84 | |
68 | |
63 | |
60 |
User | Count |
---|---|
211 | |
146 | |
94 | |
82 | |
67 |