cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerapps890
Post Prodigy
Post Prodigy

Filtering causes color change of shapes

On my onvisible I create the radio collection. 

If(IsBlankOrError(Radio1.Selected.Value), Color.White, Radio1.Selected.Value = "Works", RGBA(0,255,0,.5), Radio1.Selected.Value = "Has issues", RGBA(255,255,0,.5), Radio1.Selected.Value = "Does not work", RGBA(255,0,0,.6))

This is the fill for my shape in the gallery. The problem is whenever I filter, it will change all the radio buttons that have not yet been selected to the color of the shape based on the radio button. Is there a way to get around this because I want the shape to remain white until the radio button is pressed.  

14 REPLIES 14

What do you mean it needs to be unique? Can I just call the column ID

Yes, call it ID but the records cannot repeat, it has to be something like 1,2,3,4,5... not 1,1,1,2,2,2,3,3,3

Capture.PNGI added the column and each have a different ID these are all the errors I am getting @justair007 

I put it in the onchange radio button inside the gallery

Alex_10
Super User
Super User

it look like a radio button must be always selected to make the conditional code work properly.
What if you try:

 

If(
IsBlankOrError(Radio1.Selected.Value), Color.White,
Radio1.Selected.Value = "Not specified", Color.White,
Radio1.Selected.Value = "Works", RGBA(0,255,0,.5),
Radio1.Selected.Value = "Has issues", RGBA(255,255,0,.5),
Radio1.Selected.Value = "Does not work", RGBA(255,0,0,.6)
)

 

Radio1.default = "Not specified"


Radio1.items = ["Not specified","Works", "Has issues", "Does not work"]

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,753)