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 in canvas app
Power Apps
Answered

Timer in canvas app

(0) ShareShare
ReportReport
Posted on by 45

How to start and stop a timer using single button in canvas power app? Please someone help me out in this.

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at

    Hi @Anony1k 

     

    Add a button in your app with this code in the OnSelect:

     

    If(
     varTimerRunning,
     UpdateContext({varTimerRunning: false}),
     UpdateContext({varTimerRunning: true})
    )

     

     

    Create a timer control in your app and set its Start property to varTimerRunning.

    SpongYe_0-1701503459641.png

    SpongYe_1-1701503552785.gif

     

     

    Clicking on the button will start the timer. If you click again it will stop the timer. 

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

  • Anony1k Profile Picture
    45 on at

    This worked. Thanks a lot!!!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard