How to start timer field with BR, CS.

Eddy6
Tera Contributor

hello experts
I have a customer requirement.
To create a timer field that start counting time when state = "Active".
I already have the field, but it starts automatically, what I need is for it to start when I change to the ="Active" state
but when the form loads it starts the timer, but I want that starts with the conditions state="active"
I have changed the UI property so that it doesn't start when to load form, but I can't how to make it start with the condition.

I hope you can help me

6 REPLIES 6

Dan H
Tera Guru

Hi Eddy,

You can do this with a business rule running on update/insert of the record.

Add a condition on the business rule such as - State changes to Active

and then start your timer

 

Please mark my answer as Correct/Helpful based on impact

Regards,

Dan H

 

Eddy6
Tera Contributor

Hi Dan,

this option was review but in the field not exists the value "start" when is selected in the actions tab.

or your proposal is in the script, if is it, please shared the script for to start timer.

Regards

 

Sure, please share details about your timer field.

Type, name, any script already running on this to make it work

Fernando Koenra
Kilo Sage

Hi Eddy,

I just wanted to mention, is the requirement specifically to use a timer field - or is is to track the time of something specific such as how long the incident was active?

Or in other words; Do you need a timer field for a user to track time from the client side, or do you need to measure time between state/field changes from the server side?

Otherwise if it is the later then maybe you could consider looking into Metric definitions or SLAs. 🙂

If on the client side then it would the 'Time Worked' field, which is typically used to for users/agents to track their time spent on the particular record. 

I'm not sure if there is a way to start and stop the Time Worked field from a client script, but the following very old post may be helpful.