I have a Power App using Forms to display and update data in SharePoint lists.
It includes a date field, which the user can choose to select. If I leave the DefaultDate property blank it is displayed at '31/12/2001'. If the user saves the record with selecting a date, the field remains blank (which is what I want it to do).
If I set the DefaultDate to 'Today()' then today's date is displayed. If the user saves the record, even without actually clicking on the date picker, this date is stored.
Is there a way of showing the default date as today's date, but only saving it if it then selected by the user?
thanks
Bof,
Great solution - works a treat. Thanks very much, Mark
Hi @MarkFitzpatrick ,
You could set the datepicker's OnSelect property to:
Set(SaveDateVaribale,true)
Set the date datacard's Update property to:
If(SaveDateVaribale,DatePikcerName.SelectedDate)
Best Regards,
Bof
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1