Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to create onChange Client Script against Multi-Row Variable Set?

AndresGT1
Giga Expert

I'm looking for a way to create an onChange catalog client script (employee center request) to watch over the row values.

 

The Multi-Row variable set has a field called "Amount" that will be added on each input and outside of it there's a field called "Total Amount" that should be updated every time a row is added.

 

Anyone has been on a similar requirement? Any idea works.

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@AndresGT1 

so basically outside variable should be updated whenever new row is added?

Also you will have to subtract if user deletes row

this is feasible, follow these links and enhance

Populate field outside MRVS with a total sum of fields inside MRVS 

Actions after a MRVS update 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@AndresGT1 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@AndresGT1 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader