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!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,016)