cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SwampyGator
New Member

Date Picker

I believe I have a simple requirement that I have spent hours trying to fulfill.

I need the date picker to default to Today on the first load. On subsequent form loads the value displayed should be whatever value the user selected from choices. 

The form field initializing the date picker control is a SharePoint column. All aspx pages work properly. I can easily set the date picker defaults. The issue is after the initial save if I open the form two days later the value in the date picker resets to the current date. I need to set the date picker to today once, and on subsequent form loads have the value the user selected which is correctly stored in SharePoint, be displayed in the date picker.

1 REPLY 1
RandyHayes
Super User
Super User

@SwampyGator 

Assuming this is in a Form - Change your DefaultDate property of the DatePicker to : Coalesce(Parent.Default, Today())

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,901)