Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

org.mozilla.javascript.NativeArray@3d4ce6 on the variable

Karan31
Tera Contributor

I am trying create an array from the multi line text field that will have group names on new lines.e.gfind_real_file.png

 

so in the script i am checking if the array actually getting created or not

var str = current.variables.group_list.toString();
var grpArr = str.split("\n");

current.variables.test_array = grpArr;

&  i am getting the error on the field where i am trying to submit the array to test.

 

Can someone tell me what this error is  OR any other way i can check array is getting created or not For further uses in the script.

 

 

 

5 REPLIES 5

DrewW
Mega Sage

It sounds like "current.variables.test_array" is a string var so when you sent the array to it the system is converting it to a string.  So you need to use .toString() to convert it to that.