How to start timer field with BR, CS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2022 03:31 PM
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
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2022 09:46 AM
Hi Fernando,
yes, I want start timer field, I reviewed the post, but not find howto start the timer field when state change of value not when load the form. I already can stop when load the form but now I want start the field.
are you have any ideas??
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2022 07:38 AM
Hi Eddy,
It's hard to say what would be a good way to proceed without knowing the full scope of the requirements, however I don't think there is an official way to control the timer.
The old method probably doesn't work anymore (and dom manipulation is a bit hacky to begin with) but thought you might get some ideas out of that one in case it is just a simple requirement.
Regarding your question; in their example they put a client-side function on a onLoad client script.
In your case where you want to do something onchange - you could put it in an onChange script based on the state changing.
I would imagine a user typically saves/updates the form when they change the state - and not wait for a long time until saving it. In that case it would still be onload as the form would reload upon saving.