Multiple Row Variable Set showing Catalog Client Script SyntaxError: Unexpected end of JSON input and Empty JSON Value

Edwin Ng
Tera Expert

Hi,

I am trying to compute the total value of 1 of the column in the MRVS and displayed onto a variable in the record producer as shown below:

find_real_file.png

I have followed the guide from the below link but to now avail.

Not able to retrieve Multi Row variable set data using onSubmit client script - IT Service Managemen...

From the below catalog client script, I have encountered error due to the parsing of the g_formGetValues. I also found out that the result of console.log(g_form.getValue('billing_request_insert_details')) is returning empty values despite I have filled the relevant field in the MRSV.

find_real_file.png

Catalog Client Script

find_real_file.png

MRSV in preview

find_real_file.png

Error in Console

find_real_file.png

Details of MRSV

I would appreciate if anyone could assist on my problem.

1 ACCEPTED SOLUTION

Kartik Sethi
Tera Guru
Tera Guru

Hi @Edwin Ng 

 

You can follow my reply to a similar community thread:

Add the total cost in multirow variable set

This thread might give you the required solution. Please check and let me know if you still face the issue.


Please mark my answer as correct if this solves your issues!

If it helped you in any way then please mark helpful!

 

Thanks and regards,

Kartik

View solution in original post

11 REPLIES 11

Harish KM
Kilo Patron
Kilo Patron

Hi in your client script line number 6 should be a variable name of your variable not Variable_name

 

.multiRowVariableSet[i].Variable_Name; // replace Variable_Name with your actual variablename

Regards
Harish

Hi Harish,

Thanks for your prompt reply and noticed the discrepancy.

However, the error remains.

 

You need to check other part as well . Where ever they have mentioned variableName replace it to your variable name

Regards
Harish

The error happens before the for loop.. Apparently, the value loaded onto the variables in the MRVS is not picked up somewhere in the backend.. I am not sure if any configuration for the MRVS is incorrect