Hello!
I am trying to change the template fill of the rows in a gallery based on their relation to a dropdown. I'm using two Sharepoint lists as databases and relating them through a field. The problem I'm facing is that, instead of changing the template fill of a specific item, all items change color based on the last input of the dropdown. Here's a sample of my code:
If(
ThisItem.IsSelected,Color.MediumPurple,
LookUp(
'list',
'topic field'=ThisItem.TopicID && Location=varSelectedLocation,true
) && Radio1.Selected.Value = "No",
Color.DarkGray
,
LookUp(
'list',
'topic field'=ThisItem.TopicID && Location=varSelectedLocation,true
) && Dropdown1.Selected.Value = "bad evaluation",
Color.OrangeRed
,
LookUp(
'list',
'topic field'=ThisItem.TopicID && Location=varSelectedLocation,true
) && Dropdown1.Selected.Value = "good evaluation",
Color.LightGreen
,
...
)
Any ideas of what might be wrong?
Thanks!