web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Timer: "OntimerEnd" fu...
Power Apps
Answered

Timer: "OntimerEnd" function not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I am looking to record how long it takes my employee to complete a task.

 

I want them to activate the timer by hitting Start and then i want them to Stop the timer by hitting Stop.

 

After they Start /STop the timer i want to record how long thast task took them in a Text field that is connected to sharepoint. 

 

Example of Power apps Page:

 

Date: 08/24/2018

Task: XYZ

Start Button:

StopButton:

 

Total: Time: = Timer reesults after the stop button is selected. 

 

Then they hit the submit button and it submits the editform and resets everything to default.

 

Please help. 

 

 

 

Categories:
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    The OnTimeEnd property will only be triggered when the timer control run out of the duration time range configured.

     

    If you would like to record the time when the stop button pressed, then please follow the steps below:

    1. Add a Timer control, two buttons, one for Start, another for Stop,

    2. Configure the OnSelect property of the Start Button to:

    UpdateContext({TimerStart:true})

    3. Configure the OnSelect property of the Stop Button to:

    UpdateContext({TimerStart:false});UpdateContext({TimerStop:Text(Time(0, 0, Timer1.Value/1000), "[$-en-US]hh:mm:ss")})

    4. Configure the Start property of the Timer control to:

    TimerStart

    5. Add a Label control, configure its Text property to:

    TimerStop

    6. Under the Submit button, add the following code:

    UpdateContext({TimerReset:True})

    7. Under the Screen OnVisible property:

    UpdateContext({TimerReset:false})

    8. Under the Reset property of the timer control, enter the following:

    TimerReset

    More reference:

    Timer control in PowerApps

    Variable in PowerApps

     

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you. This worked

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard