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 change the colo...
Power Apps
Answered

How to change the colour of box depending on the options.

(0) ShareShare
ReportReport
Posted on by 58

Hello!

 

I have this set of data on SharePoint List and I want to create a PowerApp. 

annoying_0-1620202375441.png

I want my text box to appear green as long as one of it is Yes. (I have a list of activities) 

For example, in Jan, activity 1 is yes and activity 2 is No. So my Jan text box is green.

But for Feb, both activity 1 and 2 is No. So this should remain as blue. 

How should I write my code in the fill section?

annoying_1-1620202471275.png

 

 

Categories:
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @annoying 

    what type of control are you using for your boxes?

     

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @annoying 

    On the Color Property of your textbox for example you can use below:

    Mira_Ghaly_0-1620203621425.png

     

  • annoying Profile Picture
    58 on at

    Hello @Mira_Ghaly 

     

    The box is a rectangle while the word is a label. 

  • annoying Profile Picture
    58 on at

    @Mira_Ghaly 

    I do not have a gallery. Is there another way I can do this?

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @annoying 

    For rectangle u can use the Fill Property

  • m3ngi3 Profile Picture
    725 on at

    Hi @annoying, could you give some more info on how you have setup the Power App according to the Sampling Schedule image? Is the list of activities always a fixed amount of records?

     

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @annoying 

     

    I am not sure how you are setting up your screens , so do you have a screen per activity or what?

     

  • annoying Profile Picture
    58 on at

    Hello @Django 

     

    This is the only screen I have on PowerApp so far. This screen shows the summary of month that has samples to be taken. There is a fixed amount of 10 records. So if any of the records has a requirement to take the sample for the month Jan, it should display green. But if there is no sample to be taken for that month, it should remain blue.

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @annoying 

    so this screen is showing all activities across months is that correct?

     

  • annoying Profile Picture
    58 on at

    Hello @Mira_Ghaly,

     

    I have explain in my comment to Django. The next screen I will have will be to click on the month Jan and display what sample I need to be taken. 

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard