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 / How can I start and st...
Power Apps
Answered

How can I start and stop timer on click on different strart and stop button?

(1) ShareShare
ReportReport
Posted on by 9

How can I start and stop timer  on click on different strart and stop button?

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Ashwini,

     

     Add two buttons on the app, one for Start, another one for Stop.

     

    For the Start one, set its OnSelect property: UpdateContext({Start:true})

     

    For the Stop one, set its OnSelect property: UpdateContext({Start:false})


    Then add a Timer control, set its Start property as: test


    Please try if this will work for you.

     

    Best regards,
    Mabel Mao

  • bean Profile Picture
    568 on at

    Well said.

     

    Don't you mean set the Start property to Start as that is what your UpdateContext() variable is called? 

     

    Sean

  • Ashwini Profile Picture
    9 on at

    Thank You!!

  • WilsonABC1 Profile Picture
    15 on at

    yes, he made a mistake on the variable.

  • JVilleneuve Profile Picture
    9 on at

    I had a similar issue where a timer I was using to refresh my data connection every few seconds was resetting dropdown selections on a form.  Here is what I did:

    My Form is in a control box that is only visible when a variable (varViewForm) is true.

    I set the 'Repeat' value of the timer to: If(varViewForm=true,false,true).

    This prevented the timer from refreshing and cancelling the dropdown selections until the form was submitted and the variable was set to false.

     

    Hope this helps.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard