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 / Fill up Color with a c...
Power Apps
Answered

Fill up Color with a config file

(0) ShareShare
ReportReport
Posted on by 12

I want to make the colour of a label dependent on a config file. This way I can easily intervene to adjust the look&feel of the app.

In my config file, I define a certain colour in HEX (e.g. varColor = "#4E4E4E").


In the text label, I do the following:
ColorValue( LookUp(Config, Code=3, varColor) )


Nothing changes. If I put this in "text" (without ColorValue of course) then I get the correct value ("#4E4E4E4E") . If I put this in "Color" then nothing happens.


Am I doing something wrong? Is this not possible?
Or how would you handle this?


Thanks for the feedback

Categories:
  • Bilakanti Profile Picture
    1,226 on at

    @JohanPuttaert Color property only accepts color datatype(RGBA), as your value is of type text it's not reflecting. I doubt if there is any way to do it.

  • JohanPuttaert Profile Picture
    12 on at

    thanks for your quick reply but I found a post here somewhere where it apparently works?
    This is the topic : https://powerusers.microsoft.com/t5/Building-Power-Apps/Using-a-Lookup-to-set-Color/td-p/1381956

  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @JohanPuttaert ,

    Just did a test here - Collection same structure as your data

    ClearCollect(
     config,
     Table(
     {
     Code: 3,
     varColor: "#4E4E4E"
     }
     )
    )

    then the Fill of a Button

    WarrenBelz_0-1674874008020.png

    and it works as expected

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • JohanPuttaert Profile Picture
    12 on at

    thanks for checking it out.
    I had continued testing in the meantime and it works.

     

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard