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 Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

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