cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
acepeda
Helper I
Helper I

PowerApps for Teams Text color formatting on Choice field - How to?

Hello,

I'm trying to apply text color formatting to a choice field in a gallery using PowerApps for teams.  

I applied these 2 options that actually works on PowerApps Standard Tenancy but none of them works in PowerApps for Teams:

 

Option1:

If(ThisItem.'Project Complexity'.Value="High", Red, This.Item.'Project Complexity.Value="Medium", Yellow, Green)

 

Option2:

Swicth(ThisItem.'Project Complexity'.Value, "High", Red, "Medium", Yellow, Green)

 

I appreciate your help in advance,

 

 

Regards.

 

1 ACCEPTED SOLUTION

Accepted Solutions

I finally solve it... i had to use Text function prior ThisItem statement.

Switch(Text(ThisItem.'Project Complexity'),"High", Red,"Medium",Orange,Green)

 

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @acepeda ,

 

Could you tell me:

What control did you use in the gallery?

What property of this control do you want to change the color?

 

Could you use some pictures to describe the problem you encountered?

 

Thanks.

Best Regards,
Wearsky

I finally solve it... i had to use Text function prior ThisItem statement.

Switch(Text(ThisItem.'Project Complexity'),"High", Red,"Medium",Orange,Green)

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,460)