Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

creation of timer field on incident form?

dev201
Tera Contributor

 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

 

3 REPLIES 3

Sagar Patro
Kilo Guru

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..");
}

find_real_file.png

 

 

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 🙂

 

 

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.