web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to apply different...
Power Apps
Answered

How to apply different colour background to different text content on power app?

(0) ShareShare
ReportReport
Posted on by 5

Hi all, new user for power app. I am trying to create a power app for work and was hoping to get some help for some formatting problems that I have encountered. 

I was hoping to apply different set colour background according to different text content. For example, green colour background for "Approved for use", red colour background for "Not approved". However whenever I tried to do it, it will apply to all ie either green colour for both "Approved" and "Not approved", or red for both. How do you write the formula to only apply certain colour to certain text?

 

Many thanks in advance for all your help!

Capture.JPG
Categories:
  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @sabrinawu 

     

    this is possible

     

    if its a text box this should work:

     

     

    Switch(
     TextControl.Text,
     "Approved for use", Color.Green,
     "Not approved", Color.Red,
     "Pending review", Color.Orange
    
    )
    

     

     

    you need to replace the Textbox with the name of your input control

    you need to put this in the fill property. if its another column type like choice or combobox let me know

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • VishalJhaveri Profile Picture
    1,169 Moderator on at

    I don't think in any way if that is possible. Sorry!
    If my answer helps you please mark it as solution.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard