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:
(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?
I think you need to update the context of the timer to false at the end of your statement (when it is completed the execution), or on the navigation away from the form.
I am not following exactly what you are trying to do but I will give you some ideas that I think are the pieces you are missing.
Actually, I think that is all you are missing. 🙂 Let me know if you need more help. I have videos on using the Timer Control and animations (which showcases Timer)
I have made a test on my side, please take a try with the following workaround:
The OnVisible property of the Sub-page screen set to following formula:
The Duration property of the Timer control set to following formula:
The OnTimeEnd property of the Timer control set to following formula:
The Reset property of the Timer control set to following formula:
The AutoStart property of the Timer control set to following formula:
The OnSuccess property of the Form (Edit Form) set to following formula:
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.