org.mozilla.javascript.NativeArray@3d4ce6 on the variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2020 08:23 AM
I am trying create an array from the multi line text field that will have group names on new lines.e.g
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.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2020 11:51 AM
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.