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 / Change FocusBorderColo...
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:
I have the same question (0)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Try using IsBlank(Self.SelectedDate)

     

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

  • Verified answer
    Future_Vision Profile Picture
    634 on at

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard