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 Apps
Answered

reset date field

(0) ShareShare
ReportReport
Posted on by 26

I would like to reset a date field with a button. At the moment I just have Reset(Datacardvalue3) - this is Datacard of the date I want to reset. 

I have set the date default to today()+1 so I believe when reset it should reset the date to tomorrow, right? 

 

Some backstory:

Modified SharePoint list form. 

OnNew: I have added the date field and set the default date to today()+1 (It should actually be 365, but need to test) - works

OnEdit: I have the same date value but have set to view only (brings up correct date). Included a save button in the end with Submitform( editform1); Reset(Datacardvalue3)

The story behind it is that this item should be reviewed once a year. So built a flow to remind user to review item. User opens item, edits it and changes values (or not), then selects save which should reset the date field and tehy'll get another reminder next year)

 

Anything else I can try?

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @Madeleine ,

    The issue I believe you have from what you describe is that a control can only be reset from within the form itself, which of course the SharePoint Integration OnSave function is not.

    To test this, put a button in the card (you will need to unlock it) with the Reset and see if this changes the date to what you need.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Madeleine Profile Picture
    26 on at

    I have added a button in the date card with OnSelect property set to Reset(datacardvalue3) but the button does nothing. 

     

    I'm quite happy with the button remaining here - can I perhaps set the date to today's date with that button? Still don't know how to...

     

    I feel like I need something after the datacardvalue  (Like if its a choice field you have datacardvalue.selected.value, and text fields you have datacardvalue.text, what do you use for dates?)

  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @Madeleine ,

    If you have this button on the date card with the OnSelect (change to your name)

    Reset(YourDateCardName)

    and the Default of this control is 

    Today()

    and change the date to something else and reset, it works as below.

    DateReset.gif

     

     

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Hi @Madeleine ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Madeleine Profile Picture
    26 on at
    Hi Warren,
    Your post actually led me to uncover all sorts of other concerns. Such as realizing that my default was giving incorrect outputs. I eventually took out the default and used the button to set to a value that I needed.
    So in my new form I set the review date with a formula to today +365 and on my edit form I have a button that sets that date to today +365. And it seems to work fun now.
    I have one last issue with this form but will try one more thing on Tuesday and if that doesn't work I'll reach out to this forum again.
    Thanks again for all your help!
  • WarrenBelz Profile Picture
    156,386 Most Valuable Professional on at

    Thanks Madeleine,

    Please consider Accept as Solution to close the item and assist other to more easily find it.

    Happy to help with your issue - I have plenty of time at the moment. Note timeline currently 8:30pm Saturday in Australia so allow for this on Tuesday.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard