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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (23,895)