cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MOSAIED
Frequent Visitor

Change text color if the title starts with or contains

New to PowerApps here: 

 

I am trying to change the Fill in color of a Lable based on its text. I am looking to change the color only if the text STARTWITH or CONTAINS "DPI: "

 

How can I achieve this? 

 

Thank you

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

You can update the Fill property of the label. In this example it will fill the label Red if it has "DPI" anywhere in the text otherwise it will be Blue.

 

If("DPI" in Self.Text , Red,Blue)

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Jeff_Thorpe
Super User
Super User

You can update the Fill property of the label. In this example it will fill the label Red if it has "DPI" anywhere in the text otherwise it will be Blue.

 

If("DPI" in Self.Text , Red,Blue)

 



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,227)