cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,307)