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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Date picker not resett...
Power Apps
Unanswered

Date picker not resetting date

(0) ShareShare
ReportReport
Posted on by 2

I have a multi-tab form tied to a Sharepoint list that tracks work items.

 

"Latest Status Date" is a date column on Sharepoint that has a date picker in the custom form. It defaults to Today's date when the ImputForm is in New mode, and to the existing value when in Edit mode (Parent.Default).

 

I want to add a "Set Today" button so the user just has to click on it to update the date on the column to Today. What variable should I configure for this to happen? I tried OnSelect: Reset(DataCardValue16), but that only works when testing the form -I guess that's because on test the form is set to New and it uses Todays date. How can I "pass" today's date to the DataCardValue16?

 

Also, is there a better solution, like including a "Today" button or link within the date picker itself?

 

lagonz_0-1675884675949.png

 

Thanks!

 

 

Categories:
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    HI @lagonz ,

    Do you want it to display today's date?

    Try setting the DefaultDate property to Today()

    vchengfenmsft_0-1675914955862.pngvchengfenmsft_1-1675915005983.pngvchengfenmsft_2-1675915013576.png

     

     

    Best Regards

    Cheng Feng

  • lagonz Profile Picture
    2 on at

    I tried that before and just tried again following your message. The problem is that when the user tries to Edit the record, the date gets immediately overwritten.

    Deal Tracker list.jpgEdit form.jpg

     

    The same happens with records that don't have data in the Latest Status Date field: the user goes to Edit and the field gets immediately overwritten with Today's date.

     

    The intent is that the field gets updated only when the user has a material update, no by just going to Edit mode. I didn't find a way to add a "Today" box to the date picker, so added this button.

     

    The button has the following action OnSelect: Reset(DataCardValue16)

    The data card hast the following default: If(InputForm.Mode=New,Today(), ThisItem.'Latest Status Date')

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard