Hi there
I'm using PowerApps for Teams, and I have a screen that's divided in four selectable parts: each one has a selection button. What I want to do is, when clicking the button, to change the color and border thickness of the selected element (as seen on the leftmost part of the screenshot), as well as changing from "View" to "Edit" the calendar date selector.
Any Idea on how I can achieve this? I know it could be easier with a group of radio buttons, but for that I would need to set it for a horizontal layout, and I don't have that option anywhere (I can only get the "LayoutMinHeight" and "LayoutMinWidth" values. Could this be because the content is inside a container?).
Thank you for your help
Solved! Go to Solution.
Hi @PedroFernandes ,
On select of buttons you can set variable and add the a switch case with those value in the Fill and Border of the buttons.
If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.
Set the Button 1 "Onselect" property to
UpdateContext({SelectedButton:1})
Set Button 1 Fill property to
If(SelectedButton = 1,RGBA(100,100,100,1),RGBA(56, 96, 178, 1))
Hi @PedroFernandes ,
On select of buttons you can set variable and add the a switch case with those value in the Fill and Border of the buttons.
If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.
Set the Button 1 "Onselect" property to
UpdateContext({SelectedButton:1})
Set Button 1 Fill property to
If(SelectedButton = 1,RGBA(100,100,100,1),RGBA(56, 96, 178, 1))
That worked like a charm! Thank you so much for your help, I've been around this for hours!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
164 | |
94 | |
64 | |
63 | |
61 |
User | Count |
---|---|
234 | |
162 | |
95 | |
83 | |
81 |