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
Solved! Go to Solution.
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,
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,
User | Count |
---|---|
196 | |
122 | |
88 | |
49 | |
41 |
User | Count |
---|---|
285 | |
162 | |
138 | |
77 | |
73 |