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

Community site session details

Session Id : IQ11OMl339RyeH5bIZ45iS
Power Apps - Building Power Apps
Unanswered

Issues with timers in components

Like (0) ShareShare
ReportReport
Posted on 12 Apr 2023 06:37:01 by 359

Hi,

 

I was trying to make a navigation bar for my app that used a timer to animate a show and hide animation when a button is pressed.

I put it all together and it worked fine on a screen. However, when I transferred it to a component, It wouldn't work.

I am triggering the timer using the start property with a global variable that is tied to another button. When you press the button the timer starts, but has issues. The OnTimerEnd function seems to be bugged. Setting a variable in it only changes it for a split second and then it seems to switch back. Also, sometimes the timer will randomly skip back to a random value and stop there, in a component or not.

 

Are these issues known, and is there a fix for it?

 

Thanks

Categories:
I have the same question (0)
  • Suggested answer
    CarlosMagnoSS Profile Picture
    2 on 27 Feb 2025 at 20:46:04
    Issues with timers in components

    Do not use a global variable in the "Start" of the timer. Create a parameter and activate it externally, wherever you place your component. This worked for me
  • Mookmac Profile Picture
    2 on 10 Nov 2023 at 15:11:49
    Re: Issues with timers in components

    I have what seems to be the same issue - using a Timer in a component. Interestingly I then have this component placed onto two separate screens. On one screen it works perfectly but on the second screen it doesn't ever start the Timer. Properties are setup the same on each screen. I use a single context variable to display the component and start the timer, the component is correctly displaying when by trigger is clicked but the Timer never starts. I have tried setting the variable from False to True on my trigger button to get around that common Timer issue but it has had no effect here. I wonder if the Timer control is not correctly instanced when you reuse the component? It certainly feels like a bug here. 

  • BradonK Profile Picture
    359 on 13 Apr 2023 at 03:10:51
    Re: Issues with timers in components

    I have already enabled that unfortunately and It didn't work.

    I gave up on trying to animate it and decided just a static on off for visible will do.

    If there is a way around it though I'm happy to try again.

     

    Thanks

  • v-bofeng-msft Profile Picture
    on 13 Apr 2023 at 02:31:09
    Re: Issues with timers in components

    Hi @BradonK ,

     

    Please turn on the component's 'Access app scope' function and try again

    vbofengmsft_1-1681353062286.png

     

     

    Best Regards,
    Bof

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete