OnChange Client Script for a Multi Row Variable Set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2019 04:12 PM
Hi all,
I was wondering if anyone could indicate if it was possible for a Client Script to fire upon an entry into a multi row variable set?
You can do onChange scripts for the individual fields, but I was hoping to execute a client script upon the actual entry of a row into the variable set. Basically - I need to run a GlideAjax script that passes in multiple values from the row, and would like to do it once it's actually submitted or edited.
I've read a couple of threads on the topic that aren't promising:
https://community.servicenow.com/community?id=community_question&sys_id=d8344729dbd8dbc01dcaf3231f96198d&view_source=searchResult
https://community.servicenow.com/community?id=community_question&sys_id=6ed4fa88db2aa340107d5583ca961902
I was wondering if anyone else had any information they could share?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2019 07:39 PM
You will be achieve this using g_form.setValue() for multi row variable set.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2019 08:17 PM
Hi Sachin,
Thanks for your answer but I was looking more for how I can trigger a Client Script based on when someone adds a row into a Multi Row Variable Set (pushes the 'Add' button).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2019 05:45 PM
I too would like to know if there's anyway to trigger a client script based on adding or deleting a row. Doesn't look like it however.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2019 05:53 PM
You'll need to submit this functionality as an enhancement request to ServiceNow, as there is currently not a mechanism to achieve this.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022