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

Thanks for your response. but one thing i would like to know why it's not working in onSubmit client script, if you know it let me know.

I am checking on Onsubmit. will share it shortly.

Regards,Shamma Negi

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

 

 

Hi Harshavardan,

 

  could you please help me out my recently posted question . i have posted 4 hours ago no one has replied,  Multi Row Variable Set Reference Variables. below my quey.

I have requirement on service catalogs , i used multirow variable set . Requirement

as part of my requirement i have created two Multi row variable sets 

1st variable set variable are Asset id (reference asset table) , SAP number

2nd variable set variables are Asset id(reference asset table) , asset found

 

1st variable set is for end user 2nd is for task person.

 

in the 1st variable set user selected the two items and submitted the request , then task person in the 2nd variable set once click the asset id in that it should display what are the assets were selected by end user.  how to restrict that if any one knows let me know.

1st variable set here 2 assets selected

find_real_file.png

2n variable set once click on asset id it should show only those 2 assets but it's showing all the assets. how to restrict that let me know.

find_real_file.png

find_real_file.pngthanks in advance.

if i answered your query kindly mark my answer as correct so that user can see the correct answer based on the question has asked. 

sure let me check it and i will reply on the thread which you have posted.