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 / ColorValue Function Sh...
Power Apps
Answered

ColorValue Function Shall show color based on the source text

(0) ShareShare
ReportReport
Posted on by 776

Hi Team,

 

I would like my app to show color based on the source input text (example - red from source should show red color)

 

Refer the image for reference 

 

I'm picking up the source text from a SharePoint list. The Function ColorValue should show color based on the text input

ColorValue.gif

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,460 Most Valuable Professional on at

    Hi @AshishJaiswal ,

    You need to hard-code this - for instance

    Switch(
     YourTextInputName.Text,
     "Red",Red,
     "Green",Green,
     "Blue",Blue
    )
     
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    AshishJaiswal Profile Picture
    776 on at

    @WarrenBelz 

     

    I think i found the solution after researching a little

     

    I need to select color filed before adding a function

     

    Stupid me, I was adding that color function in 'text' filed

     

    Please refer the image - Blue are blues and reds are red

    colorvaluefix.gif

  • Kopistars11 Profile Picture
    59 on at

    Can you do this for a person field or a column in sharepoint list? Example: if the user is listed in the Technician column, their text would be say blue. and if the user is in the supervisor column, their text would be red?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard