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 / Formula if text change...
Power Apps
Answered

Formula if text change the color to be change in a textlabel

(0) ShareShare
ReportReport
Posted on by 259

i have the filed called status having 3 options "Open" ,closed" , "progress"

in the gallery have all the controls in place and the data is displaying perfectly, what i wanted is get automatically change the 

colors to specific status 

if status = open then color  = red  or status= closed color=x etc... 

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,127 Most Valuable Professional on at

    Are you trying to change the color of the whole cell in the gallery or just a label control in the gallery for each item?  If its a label then the formula would be something like this in the Fill of the label in the default cell in the gallery.

    If(ThisItem.status.Value = "In Progress",Yellow,If(ThisItem.status.Value="Started",Green,White))

    Where status is the field showing the result of a status dropdown (Choice) column. 

  • Rabbanisyed Profile Picture
    259 on at

    i am fetching the data from SP in to Gallery where the text control having Field as and showing resolved"

    i set the color of the field (status) to green now wanted to change the color depending status

    err2.png

     

  • Rabbanisyed Profile Picture
    259 on at

     still getting the error, i have shared the error, what exactly i need is when the form is loaded it has to change the  color based on the status user filled during the submission of the form.

    is their anyway to have conditional formula in PowerApps??

     

    Thanks and regards for the response.

     

     

    god blessings

     

  • Verified answer
    Rabbanisyed Profile Picture
    259 on at

    I have solved this by using the COLOR  from the Formula bar  for the textbox i wanted to change the color dynamically

    coloer:

    If(ThisItem.Status.Value="Open",Red,Green), once the form is loaded it change the colors accordingly

    err2.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard