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 / Stop Updating The Subm...
Power Apps
Answered

Stop Updating The Submitted DateTime Picker DefaultDate Value After Editing.

(0) ShareShare
ReportReport
Posted on by 79

Hi All,

 

I have a DateTime Picker that has the DeafultDate value as Today()+3 as in the below screen capture.

 

Screenshot 1000'.png

 

The issue is when I submitted the form, it saves the DefaultDate value as expected. However, when we try to edit the form on a future day, the controls show the date as a new date with the calculated Today()+3 value. 

 

As an example like in the above screen capture, the Target Launch Date is 23rd January 2022. But If I try to edit the record tomorrow, the new Target Launch Date will be calculated to 24th January 2022. This has to be stopped.

 

How can I resolve that?

 

Thanks in advance.

 

Chiranthaka

Categories:
I have the same question (0)
  • Verified answer
    VeGETzX Profile Picture
    367 on at

    You can solve this by checking if the date field in your data source is blank or not.

     

    If it was blank, then DefaultDate is Today() + 3, but if it wasn't, just use its data as DefaultDate.

     

    Your DefaultDate property of your date picker should be

    If(IsBlank(Parent.Default),Today()+3,Parent.Default)

     

  • ChiranJay Profile Picture
    79 on at

    Thanks @VeGETzX . This works perfectly. 👌

     

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard