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 / Border Colour issue !
Power Apps
Answered

Border Colour issue !

(0) ShareShare
ReportReport
Posted on by 1,257 Super User 2024 Season 1

So I have text box called  txt_order 

 

I have set the border colour as follows

 

If(IsBlank(txt_order.Text),Red,
RGBA(204, 204, 204, 1))

 

Works fine border is red if the box is empty...  It's a text box in a dynamic gallery with rows added as required.  All rows show the border colour is red if nothing in them.  All good.  Except...

 

When I close the app and go back in all the borders are the 204 colour.    If I back in to the border colour and select it all and ctrl x and ctrl v it goes back to red?   

 

So it's working it's just not holding??

 

Any ideas.  must  be something to do with the gallery? but yet if I just re do it, it works fine?

 

TIA

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Could you try:

     

    If(
     Len(txt_order.Text)=0,
     Red,
     RGBA(204, 204, 204, 1)
    )

     

    I've found checking the length to be more robust than the blank check

  • vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    That seems to work better thanks..

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Been caught many times before with IsBlank not technically evaluating as Blank, so my knowledge of this is mostly due to previous debugging (suffering) 😂

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard