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 / Issues with timers in ...
Power Apps
Suggested Answer

Issues with timers in components

(0) ShareShare
ReportReport
Posted on by 375

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)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @BradonK ,

     

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

    vbofengmsft_1-1681353062286.png

     

     

    Best Regards,
    Bof

     

  • BradonK Profile Picture
    375 on at

    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

  • Mookmac Profile Picture
    2 on at

    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. 

  • Suggested answer
    CarlosMagnoSS Profile Picture
    2 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard