web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Datepicker Blank or Se...
Power Apps
Answered

Datepicker Blank or Selected

(0) ShareShare
ReportReport
Posted on by 776

Hi All,

 

This would be a easy one

 

How to check if date picker has a date selected in it or not

 

Because displaymode of my toggle depends on it.

 

If date selected then toggle in edit mode

 

If date not selected then toggle in disabled mode

 

Please help

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @AshishJaiswal 

    Set your displaymode property to the following formula:

      If(IsBlank(yourDatePicker.SelectedDate), Disabled, Edit)

     

    I hope this is helpful for you.

  • AshishJaiswal Profile Picture
    776 on at

    @RandyHayes 

    Hello Again ! I'm already due to give you one week of beer supply.

    Actually here is the case

    If Toggle1 is selected (yes/no) then datepicker1 will be in edit.mode

    If datepicker1 is in editmode ( something selected in it) then toggle2 will do in edit mode

    Now the thing is
    i would like to reset the datepicker1 if toggle1.value is set no (or changed from yes to no)

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @AshishJaiswal 

    I'll gladly accept more beer supply 😁

     

    So, your Toggle1 OnUncheck action should be : Reset(yourDatePicker)

    Your DatePicker DisplayMode should be : If(Toggle1.Value, Edit, Disabled)

    Your Toggle2 DisplayMode will be as previously mentioned: If(IsBlank(yourDatePicker.SelectedDate), Disabled, Edit)

     

  • AshishJaiswal Profile Picture
    776 on at

    @RandyHayes

     

    haha... you bet.

     

    I found the fix.

    if(toggle1.vale = false, reset(datepicker1) ) amd it is working fine.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @AshishJaiswal 

    Very good!  Sounds like you're underway now.

  • AshishJaiswal Profile Picture
    776 on at

    @RandyHayes

     

    I am learning from you all... member of the community. Big thank you to all 

     

    and to you Randy... always ready to help (I gave you a shout out on Twitter) 

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @AshishJaiswal 

    Awesome!!  Keep on learning!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard