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 / My Issue With IF Condi...
Power Apps
Answered

My Issue With IF Condition Checkbox And Button Submit

(0) ShareShare
ReportReport
Posted on by 17

Dear All,

Hi! Good morning, everyone.

I need help with my syntax IF condition in PowerApps.

I have three controls:

The first control is "LeaveStartDatePicker", the pink color.

The second is "CbUrgentRequestOnly", the green color.

The third is "BtnSubmit", the blue color.

1. "LeaveStartDatePicker = Current Date" and check box "CbUrgentRequestOnly" is checked at the same time, but the

button submit still disable. It cannot edit. Please help with this. Thank you all.

1.png

 

My condition is as follows:

If "LeaveStartDatePicker <= Current Date" is the result "the button submit displaymode.disable"

Else if

       "LeaveStartDatePicker > Current Date" is the result "the button submit displaymode.edit"

Else If

       "LeaveStartDatePicker = Current Date" and check box "CbUrgentRequestOnly" is checked at the same time the result "the button submit displaymode.edit"

 

 

 

 

 

 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Supperpro20 

    If(LeaveStartDatePicker.SelectedDate= (Today() && CbUrgentRequestOnly.Value) ||  LeaveStartDatePicker.SelectedDate > Today(), DisplayMode.Edit, Disabled) 

  • Supperpro20 Profile Picture
    17 on at

    I tried but it's still cannot.

    3.JPG

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Supperpro20 

    Not surprising, you didn't use the formula I provided.

  • Supperpro20 Profile Picture
    17 on at

    Now, it's working. Thank you so much! I appreciate your support.

    4.JPG

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard