Is there any option on timer field to write onChange client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2016 11:23 PM
Is there any option on timer field to write onChange client script? If some one changes it manually i need to alert message. How to achieve it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 12:40 AM
I have a incident form in which am having a field called Timer (type is timer), Whenever person opens timer will start, and it is editable also, i want to alert message, when some one edit this timer field.
ie.,
onChange of Timer
{
alert('You editing timer');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 12:48 AM
Hi Swathi,
onChange on time field doesn't work as expected. I have found few questions on community regarding the same. You can go through these. May be this will help you.
onChange Script Not Working on Date/Time Field
Mark my reply as Correct and also hit Like and Helpful if you find my response worthy.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 12:48 AM
As far as I know onChange will not get triggered, you can make it read only using DOM .
Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2019 08:37 PM
Hi Swathi,
You can write the below line of code to wait for few seconds.
var setTimer='';
setTimer=setTimeout(setTimerDelay,2000);/*to set the timer for 2 sec*/
function setTimerDelay(){
alert('timer waits for 2 sec');
//your code
}
Hope it will helps you!
Thanks,
Priyanka R