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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Change text box color ...
Power Apps
Unanswered

Change text box color based on date in Holiday Calendar

(0) ShareShare
ReportReport
Posted on by

Hello!!!! 

 

Is it possible to change the color of a text box if the date on a label is a holiday? 

 

I have created a holiday table:

 

jubae22_0-1692746955325.png

This is my label  and the syntax in my label

jubae22_1-1692747065582.png

jubae22_2-1692747087155.png

This is my text box i want to change the color if its label is a holiday date based off of the Holiday table.

 

jubae22_3-1692747205719.png

 

Appreciate the help!!! 

 

  

 

Categories:
I have the same question (0)
  • v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @jubae22 ,

     

    We made a sample for you.

     

    Dataverse:

    vhanytianmsft_2-1692755669328.png

     

    Color of Text Box(TextInput):

     

    If(CountRows(Filter(Holidays,Text('Hoiiday Date',"[$-en-US]mm-dd-yyyy") = Label1.Text))>0,Color.Red,Color.Black)

     

    vhanytianmsft_1-1692755383082.png

     

    If you want to change another properties instant of font color, this is the reference Document.

    Text input control in Power Apps - Power Apps | Microsoft Learn

     

    Hope this will help you,

    Best Regards,
    Tina

     

     

  • CU30071822-0 Profile Picture
    on at

    Thank you so much Tina!!!! it worked great. I changed it to the fill property ..... appreciate your response. 

     

    jubae22_0-1692806646712.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard