Multi row Variable set onsubmit not working.

SaiBhargav1
Kilo Contributor

Hi all,

 I am facing one issue in  my catalog item actually am using Multi row variable set in side i have 4 variables based on the three values counting, sum value has to populate in the 4th variable for that i have written on submit client script , it's not working if any one know it help me.

below script :-

var b = g_form.getValue("base_value_external");
var f = g_form.getValue("fine_value_external");
var g = g_form.getValue("gst_value_external");
var total = parseFloat(b) + parseFloat(f) + parseFloat(g);
g_form.setValue("total_recovery_amount_external" , total);

 

see the below image after submission values not fetching.

 

find_real_file.png

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron
  • onSubmit catalog client scripts are not supported for a multi-row variable set.

kindly write the script on onChange() catalog client script. 

 

adding doc link here. 

 

https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-managem...

 

 

View solution in original post

12 REPLIES 12

Shamma Negi
Kilo Sage
Kilo Sage

Hi,

 

Yes, onsubmit is not supported.

Hence please write the above mentioned onchange client script. It is working fine.

 

Regards,

Shamma

Regards,Shamma Negi

Hi Sananya,

 

i have recently posted one more query on Multi Row Variable Set, if you know that can you please help me out.

 

Thanks in Advance !

 

 

Aditya Andurkar
Kilo Contributor

For catalog items you need to write Catalog Client Script. You need to write onChange() catalog client script for this.

I have also attached this link to docs for your help.

 

https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-managem...

 

 

Please Mark Correct If You Find This Helpful.

 

Thanks & Regards,

Aditya Andurkar