Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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!!! 

 

  

 

  • CU30071822-0 Profile Picture
    on at
    Re: Change text box color based on date in Holiday Calendar

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

     

    jubae22_0-1692806646712.png

     

  • v-hanytian-msft Profile Picture
    Microsoft Employee on at
    Re: Change text box color based on date in Holiday Calendar

    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

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard