Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Stop Updating The Submitted DateTime Picker DefaultDate Value After Editing.

(0) ShareShare
ReportReport
Posted on by 72

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

  • ChiranJay Profile Picture
    72 on at
    Re: Stop Updating The Submitted DateTime Picker DefaultDate Value After Editing.

    Thanks @VeGETzX . This works perfectly. 👌

     

  • Verified answer
    VeGETzX Profile Picture
    364 on at
    Re: Stop Updating The Submitted DateTime Picker DefaultDate Value After Editing.

    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)

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard