Script Include Returning NULL Value to Client Script

jakegartenberg
Tera Expert

1. The script include is client callable, we are building a JSON object and trying to return it after using JSON.stringify();

2. our console log statement in the client script shows a null value each time rather than the JSON object String. 

Below is an image of the client script, script include, and both console log and gs log results.

XML Records are also attached for both script include and client script.

 

jakegartenberg_0-1688152703667.pngjakegartenberg_1-1688152712657.pngjakegartenberg_2-1688152737857.png

 

jakegartenberg_3-1688152776208.png

 

5 REPLIES 5

Bert_c1
Kilo Patron

Hi,

 

does adding "alert(response);" as the first line in the ParseName function in the Client Script show anything when you test? I'm not familiar with the use of 'jslog()'.

jslog prints items to the console, alert still shows null

Joe_M
Tera Contributor

On Line 18 of your client script, switch it from 'response' to 'answer'
IE: function ParseName(answer)

changing the name of the return variable did not work.