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 stop and reset f...
Power Apps
Unanswered

Timer stop and reset from different page

(0) ShareShare
ReportReport
Posted on by 87

Hello everyone,

 

how can I stop and reset a timer if I want to do this from another page?

 

For example:

I'm starting the timer with a button that is on the same page. I have a cancel button on the same page that navigates me to another page to verify the action with "do you really want to cancel the timer?" and the "yes" button there is the actual timer stop and reset.

 

This is the code i am using to start the timer with the button on the same page:

 

UpdateContext({varTimerActive:true}) 
& UpdateContext({varTimerReset:false})

 

This is the "yes" button code for canceling the timer on the other page and to navigate back to the actual page where the timer is:

 

Navigate(zeit_erfassen_screen;ScreenTransition.Fade)
& UpdateContext({varTimerActive:false})
& UpdateContext({varTimerActive:true})

 

If I use the same code on the same page the timer stops as it should. But when I put the code for the timer stop/reset on the other page the timer does not stop.

Categories:
I have the same question (0)
  • apca Profile Picture
    87 on at

    -

  • Devvj Profile Picture
    1,132 Super User 2024 Season 1 on at

    Hi @apca ,
    Can you try if it works using global variables "Set()" instead of context variables?

     

    Set(varTimerActive, true)


    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

  • apca Profile Picture
    87 on at

    hi @Devvj ,

     

    unfortunately its still running with the Set() code.


    I tried this here, but also didnt work for me:

     

    cancel button page: OnSelect

    Navigate(zeit_erfassen_screen, ScreenTransition.Fade, {IsTimerRunning: false})

     

    Timer page: OnVisible

    If(!IsBlank(Param("IsTimerRunning")), UpdateContext({varTimerActive: !Param("IsTimerRunning")}))

     I got this from chatgpt

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