# Timer.value to Tag

**URL:** <https://forum.inductiveautomation.com/t/timer-value-to-tag/28322>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [September 17, 2019, 7:27pm UTC](https://forum.inductiveautomation.com/t/timer-value-to-tag/28322 "2019-09-17T19:27:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![urvishmehta92](https://avatars.discourse-cdn.com/v4/letter/u/f475e1/32.png) [@urvishmehta92](https://forum.inductiveautomation.com/u/urvishmehta92)\
**Post date:** [September 17, 2019, 7:27pm UTC](https://forum.inductiveautomation.com/t/timer-value-to-tag/28322/1 "2019-09-17T19:27:06Z")

</div>

Hello all,  
I have small problem in ignition.I am trying to move timer.value to tag and to move that I am using another timer and using script i am writing timer value to tag but it’s only working if i click on play at the top. once i stop it,it wont move latest value. How do I script to get updated value and it will run script in background all the time,Not just when I press play in designer.  
Please Let me know.  
Thank you

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 18, 2019, 3:56pm UTC](https://forum.inductiveautomation.com/t/timer-value-to-tag/28322/2 "2019-09-18T15:56:47Z")

</div>

The short answer is you can’t. Component scripts will not run unless it’s in preview mode.
