How to start or pause the Timer field based on the other field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2018 09:09 PM
Hi,
I have timer field on my incident table but by default is running whenever i'm open the new form,
but i want to Stop the timer field by default and it should run based on the other field (Ex : state field)
Thanks
- Labels:
-
Best Practices
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 12:35 AM
Cool, but check if this works in Service Portal view, since DOM Manipulations are not allowed there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2021 01:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2021 02:14 AM
Hi,
have you considered disabling script isolation? OOTB you have no access to DOM elements. See https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0743155
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2021 03:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2021 05:46 AM
Hi,
please remove your Business Rule. It is the wrong approach. The field "Isolate script" is already there. You just have to place it on your form or set the value at list view.
Kind regards
Maik