cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Time stamp wont reset after form submit

I am having issues clearing date fields (5 of them) in my App. The fields are populated with buttons.

 

Button formula: UpdateContext({DateNow2: Text(Now(),"[$-en-US]hh:mm:ss AM/PM")})

Text Field Formula: If(IsBlank(DateNow), ThisItem.'Stop Time', DateNow)

 

I have done the following to try to reset the fields after submit without success:

- Field "reset" property set to true

- Submit button formula: SubmitForm(EditForm1);ResetForm(EditForm1);Back()

- Form OnSuccess: ResetForm(EditForm1)

 

Any ideas?

Txs

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Time stamp wont reset after form submit

Hi @Thuberdeau ,

The reason why you met this problem is that :

the variable is populated by clicking the button.

If you just reset the form, but not click the button, the variable will not update with new time stamp.

I suggest you set the submit button have formulas of setting variable too.

For example:

SubmitForm(EditForm1);ResetForm(EditForm1);Back();UpdateContext({DateNow2: Text(Now(),"[$-en-US]hh:mm:ss AM/PM")})

Then when you submit the form, the variable will also update with new time stamp.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Time stamp wont reset after form submit

Hi @Thuberdeau ,

The reason why you met this problem is that :

the variable is populated by clicking the button.

If you just reset the form, but not click the button, the variable will not update with new time stamp.

I suggest you set the submit button have formulas of setting variable too.

For example:

SubmitForm(EditForm1);ResetForm(EditForm1);Back();UpdateContext({DateNow2: Text(Now(),"[$-en-US]hh:mm:ss AM/PM")})

Then when you submit the form, the variable will also update with new time stamp.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,976)