OnChange Client Script for a Multi Row Variable Set?

Jamie Imms
Kilo Expert

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?

5 REPLIES 5

sachin_namjoshi
Kilo Patron
Kilo Patron

You will be achieve this using g_form.setValue() for multi row variable set.

 

Regards,

Sachin

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).

Darren Lau
Kilo Sage

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.

The SN Nerd
Giga Sage
Giga Sage

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