Apr 18 2019 05:06 PM
I need my PowerApps icon control to display either a red cross or a green check depending on a condition. How can I achieve this in PowerApps? The icon control forces me to pick a specific icon.
Apr 18 2019 09:31 PM
Apr 18 2019 09:37 PM
Apr 18 2019 10:55 PM
SolutionThe icon property of the icon control displays as a drop-down when we look at the standard properties, but I found out that if I switch to advanced properties it allows me to enter a function.
In my case I was able to use a switch statement:
Switch(ThisItem.Status.Value,"Success",Check,"Fail",Cancel)
where Check and Cancel are the icon names.
@ChrisWebbTech 's method would work too, but requires two controls for each icon (I have a bunch of them on my dashboard).
It seems that another method would have been to use html/JavaScript to insert graphics in a html control. I found some documentation but didn't test it.
Apr 19 2019 07:10 AM
Apr 18 2019 10:55 PM
SolutionThe icon property of the icon control displays as a drop-down when we look at the standard properties, but I found out that if I switch to advanced properties it allows me to enter a function.
In my case I was able to use a switch statement:
Switch(ThisItem.Status.Value,"Success",Check,"Fail",Cancel)
where Check and Cancel are the icon names.
@ChrisWebbTech 's method would work too, but requires two controls for each icon (I have a bunch of them on my dashboard).
It seems that another method would have been to use html/JavaScript to insert graphics in a html control. I found some documentation but didn't test it.