- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2017 10:27 PM
I want to hold screen for around 3 secs when i am changing a value of a variable on my form,
what will be the function that i can use in my on change client script.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2017 10:33 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2017 10:31 PM
Hi Anshul,
if you are using a server side script use gs.sleep()
Check this
how to keep waiting the business rule for some time.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2017 10:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2017 10:36 PM
Hi Anshul,
You can introduce delays or wait in Client Scripts using following
Name: Sleeps, Delays, or Waits in Client Scripts
Type: Client Script
Table:
Description: This script allows for a delay in a client script.
Parameters:
Script:
function onChange(control, oldValue, newValue, isLoading) { |
Refer to link http://wiki.servicenow.com/index.php?title=Sleeps,_Delays,_or_Waits_in_Client_Scripts#gsc.tab=0 |
R's Abhi PS: Mark helpful or hit like as appropriate based on my response |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2017 11:02 PM
set timeout is not holding screen, its running that particular function after 3 secs, what i want it to hold screen, is there something like wait, or pause screen.