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

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

Hi Kartik,

Your solution worked well tho I see don't understand what caused the error I encountered.

I would appreciate that you could share some references on how the client script in the widget works.

Thanks!

Br,

Edwin