creation of timer field on incident form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2018 02:46 AM
Hi all,
I have scenario like I need to create a timer field on incident form. It should act like a stop watch the user will give time in minutes and once it click on start button it will start the time while working on the incident.
once the timer reaches 0 mins, it will throw the user a validation like time is over!!!
please comment your valuable answers or approach to its fulfillment.
Thanks in advance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2018 03:11 AM
ServiceNow does not support any fields like the one you are looking for. I would suggest an alternate like this:
1. Use time worked field.
2. Write an on load client script showing a field message like "Maximum time of evaluation is ....."
function onLoad() {
//Type appropriate comment here, and begin script below
g_form.showFieldMsg("time_worked","Maximum time of evaluation is 5 min or 00:05:00..");
}
3. There are a couple of properties which are available for the timer fields to play with.
Do not hesitate to mark the answer as correct and helpful if it was 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2018 10:48 PM
Thanks for the suggestion how will the timer will throw message , if I write a on load script it will throw the message on load of the form but I need it when the time given by user is up.
Can you please let me know, how the timer will throw message once 60 mins or 90 mins are over.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2018 12:16 AM
Hi,
You can refer below link.
https://www.servicenowguru.com/scripting/client-scripts-scripting/pausetoggle-time-worked-field/
Regards,
Shweta K