
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2017 07:17 AM
Trying to write a Client Script (onLoad) for a table list view is not working. How can this be done?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2017 07:22 AM
Hi David,
onLoad client scripts only run when the form is loaded, not in a list. The only type of client script that applies to a list is onCellEdit.
http://wiki.servicenow.com/index.php?title=Client_Scripts

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2017 07:22 AM
Hi David,
onLoad client scripts only run when the form is loaded, not in a list. The only type of client script that applies to a list is onCellEdit.
http://wiki.servicenow.com/index.php?title=Client_Scripts

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2017 07:23 AM
Thanks, Chuck. I figured as much. I could write a global UI Script to check what conditions I'm looking for and then run the script, but that's a lot of overhead for every single click.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2017 07:24 AM
What is the requirement driving this question? Perhaps there are better alternatives.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2017 07:28 AM