cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Icon Fill based on Gallery Text field.

Hey everyone,

 

First time posting. Long time reading.

 

I am trying to add an icon that changes from Green, Yellow, or Red depending on the ItemParent's approval status.

 

Approval status is a field named BICF_Approval_Status within the SharePoint data source list.

It's name on its Detail Card is BICF_Approval_Status_DataCard1
In the Gallery the field is titled: BS_Approval_Status_Field

The three different text variables that could appear in this field are;   Pending, Denied, and Approved

 

Which column do I reference, do I use an IF statement, Switch Statement? Do I use 3 different icons and make each visible if text = "Pending" or text = "Approved" etc.

 

Functionally I just want to finish my app since this is one of the last steps.  The problem solver in me wants to add this to the arsenal so I can use it in future apps. 

 

THANK YOU REZADORRANI!!!! My exact solution was the following:

Switch(BICF_Approval_Status,"Pending",Yellow,"Approved",Green, "Denied",Red)

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User II
Dual Super User II

Re: Icon Fill based on Gallery Text field.

Hi @Anonymous 

 

Use the switch  function in the fill property of the icon and accordingly set the color

 

Switch(valuefromcolumn ,"Pending",Yellow,"Approved",Green, "Rejected",Red)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Highlighted
Dual Super User II
Dual Super User II

Re: Icon Fill based on Gallery Text field.

Hi @Anonymous 

 

Use the switch  function in the fill property of the icon and accordingly set the color

 

Switch(valuefromcolumn ,"Pending",Yellow,"Approved",Green, "Rejected",Red)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,562)