Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Change FocusBorderColor with 3 conditions

(0) ShareShare
ReportReport
Posted on by 634

I'm sure I am overlooking something here but I am trying to change the FocusBorderColor based on 3 conditions. Right now I have this which I though was going to be fine except that when you focus the field and it is blank the border is DarkRed.

 

If(Self.SelectedDate <= DP_StartDate.SelectedDate && (FRM_Main.Mode = FormMode.New), DarkRed ,REC_CtrlSelBdrColor.Fill)

 

What I need to be able to do is add a condition that makes sure that the FocusBorderColor remains the same if the date picker is also blank. I've tried adding an additional condition this way but it fails: && !Blank(Self.SelectedDate)

Categories:
  • Verified answer
    Future_Vision Profile Picture
    634 on at
    Re: Change FocusBorderColor with 3 conditions

    Pretty close. Needed to use !IsBlank instead of IsBlank.

  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at
    Re: Change FocusBorderColor with 3 conditions

    Try using IsBlank(Self.SelectedDate)

     

    Example:  If(IsBlank(Self.SelectedDate) && Self.SelectedDate <= DP_StartDate.SelectedDate && (FRM_Main.Mode = FormMode.New), DarkRed ,REC_CtrlSelBdrColor.Fill)

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