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 / start timer with OnCha...
Power Apps
Answered

start timer with OnChange from a textbox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am trying to start a timer when the time in my text box changes, I am trying to create a lone worker app, so when someone clicks the check in button on the app the time updates in my SP list, I then have another app with details of the lone worker in the gallery, this is where each time they click check in and update the time on my SP list which in turn will update the time on my new app text box, I am trying to start the timer using on change on the text box but it wont start the timer. I have entered the below.

 

Timer control

Autopause and autostart both false

Start   "TimerGo"

 

Textbox

Default "ThisItem.'CheckIn Time'

OnChange "UpdateContext ({TimerGo: true});"

 

I'm new at Powerapps and I know this is a complex app but I am enjoing learning how to use powerapps.

 

Any help would be much appreciated

 

Ed

 

Categories:
  • Verified answer
    BobbyNastase Profile Picture
    7 on at

    Hi,

     

    I have tried the following and it worked: in the "On Change" property of the textbox try Set (TimerGo,true) and it worked. 

     

    Bobby

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Bobby,

     

    just tried that and its not working for me, does it make a difference that im doing it in the gallery ?

     

    Ed

  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @EdyMac ,

    On the OnChange

    UpdateContext({TimerGo: false});
    UpdateContext({TimerGo: true})

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz,

     

    I tried your formula and it didnt work so to test it I added a new screen and it does infact work 👍, is the issue maybe because the text box is being updated (Changed) from my SP list ?

     

    Ed

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz,

    When I manually change the textbox it works but not when its updated automattically from my SP list.

     

    Ed

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @EdyMac ,

    Correct - the OnChange event needs to be triggered by the user changing the value. If you want to change when the screen opens, put it OnVisible of the screen.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz,

    starting the timer when a new item is created in the gallery could work, I've tried putting set(TimerGo, true) on the OnVisible property but the timer doesn't start when a new item is created. how could i acieve this.

     

    Ed

     

     

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    @EdyMac ,

    It should work, but try also using a global (Set) variable on the new form trigger

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz 

     

    Sorry if I sound dumb but where would I find the new form trigger ?

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @EdyMac ,

    Whatever code you use to set the form to New Mode.

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard