I have a main page with button that clicks through to a sub-page.
The sub-page has a Form on it. The sub-page stays open until the form is submitted, then a Timer starts for 30 seconds. OnTimerEnd the timer navigates back to the main page.
If the user enters the form again during those 30 seconds I need the Timer to reset back to the beginning, so the user gets another 30 seconds on the sub-page.
I've tried a number of things but cannot get the timer to reset back to zero. At the moment for the Form submission I check OnSuccess:
UpdateContext({StartTimer3: false});
Timer3.Value=0;
UpdateContext({StartTimer3: true});
ResetForm(Form1)
(Timer3 Data is set to StartTimer3)
The initial form submission correctly starts the timer, but any further form submission doesn't reset the timer, so when it reaches 30 seconds the page navigates away back to the main page.
What am I doing wrong?