Skip to main content
Community site session details

Community site session details

Session Id : DZDLR33HN1YK3BHNiodVUG
Power Apps - Building Power Apps
Unanswered

'Auto Pause' property on Timer control not working on live version - New Form

Like (1) ShareShare
ReportReport
Posted on 24 Jun 2020 23:35:50 by 232

Hi All,

 

I have a Refresh(Data Source) function attached to the 'On Timer End' property of a Timer Control.

The Timer itself sits on my Gallery Screen.

I also have the 'Auto Pause' property of the Timer Control set to 'true'.

According to the documentation, setting auto pause to 'true' should pause the timer when a user navigates to a new screen.

 

I also have a 'Create New' button which creates a new form and navigates to the Form Screen.

 

While I am editing and testing (previewing) my app the 'Auto Pause' function works as you would expect. The timer pauses and the Data Source won't refresh when I navigate to the Form Screen.

 

Once I publish and the run the app, however, this 'Auto Pause' function appears to stop working, the timer will continue, and will refresh the data source while users are filling out a form.

 

This is causing a problem as I have a 'Multi line' Text field in my form, and while users are editing the multi line text field, the cursor will jump to the bottom of the field, even if they have the cursor placed in the middle of a sentence when the Data Source is refreshed at the Timer's end.

Categories:
  • rebeccas Profile Picture
    2,591 on 10 Aug 2020 at 13:10:28
    Re: 'Auto Pause' property on Timer control not working on live version - New Form

    @silvadev-cdba 

     

    I find the timers have a lot of "odd" behavior in general. I don't depend on any of the settings that are built into it. Like the Reset=true...often does not work so I force it. I find a lot of uses for the timers but I find the settings that are built in with it are very inconsistent so I typically don't rely on them. 

     

    Your issue is odd...more often I find stuff that works in Play mode and not in Edit but occasionally I do see some work the way yours did....or should I say "not work"...lol. 

  • silvadev-cdba Profile Picture
    8 on 10 Aug 2020 at 13:06:30
    Re: 'Auto Pause' property on Timer control not working on live version - New Form

    Hi @rebeccas,

    Yeah, I solved my issue doing something similar to what you've suggested. But it is weird that it only happens on LIVE published version, isn't? 

     

    I can't reproduce the issue using "debug/preview/play" mode. Or even monitoring (using Monitor tool) attached to Live/published version it works fine. It auto pauses as it should when navigating to another screen.

     

    Thanks in advance.

  • rebeccas Profile Picture
    2,591 on 10 Aug 2020 at 12:38:24
    Re: 'Auto Pause' property on Timer control not working on live version - New Form

    @silvadev-cdba 

     

    For yours it sounds like you have it doing an AutoStart = true. Instead tell it when you want it started. So the screen you do want it started on you can have the OnVisible: Set(varTimerStart, false);Set(varTimerStart,true) and then the timer OnStart is varTimerStart.

     

    This will give you control on when you want it to start and when you don't.

  • silvadev-cdba Profile Picture
    8 on 10 Aug 2020 at 11:01:45
    Re: 'Auto Pause' property on Timer control not working on live version - New Form

    I'm facing the same issue... 

     

    The only thing mytimer does is to navigate to Home, but then the user can't leave Home as it will redirects again to Home over and over.

     

    silvadev-cdba_0-1597057282843.png

     

  • JayMagness Profile Picture
    1,663 on 25 Jun 2020 at 00:07:23
    Re: 'Auto Pause' property on Timer control not working on live version - New Form

    HI,

     

    Look and make sure the Timer Control is located in the proper structure..

     

    Either Screen, Canvas, Form, etc....

     

    Jay

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

Telen Wang – Community Spotlight

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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