Time control is a control that can determine how your app responds after a certain amount of time passes. Timers can, for example, determine how long a control appears or change other properties of a control after a certain amount of time has passed. In this tutorial we will see how to add a Timer control in Power Apps.
How to add Timer control to the Power Apps
- Add Timer control.
- Add Text Label control.
- Add the rule to Text Label control.
- Set the duration time for the Duration property.
- Set the value true for the Autostart property.
- Set the rule for the OnTimeEnd property.
- Set the Visible property.
- Run an app.
Key properties of Time control
- Duration – How long a timer runs in milliseconds. The maximum is 24 hours expressed in milliseconds. Default is 60 seconds.
- OnTimerEnd – Actions to perform when a timer finishes running.
- Repeat – Whether a timer automatically restarts when it finishes running.
- AutoPause – Whether the timer control automatically pauses if the user navigates to a different screen.
- AutoStart – Whether the timer control automatically starts to play when the user navigates to the screen that contains that control.
- OnTimerStart – Actions to perform when a timer starts to run.
- Start – Whether the timer starts.
- Visible – Whether a control appears or is hidden.
Formulas in this tutorial
Text Label control
Text = "Next question will come after 15 second " & RoundUp(15-Timer2.Value/1000,0) & "sec"
Timer control
OnTimeEnd = Navigate(Screen2,ScreenTransition.Fade))
Microsoft Power Apps documentation: Timer control in Power Apps