Passing all the data in an Array on an external js file to a Lectora Variable

dkeil Community Member Posts: 18
Hello all,

is it possible to pass all the information in an Array on an external.js file to a variable in Lectora? I have the .js file linked () but am having difficulty setting the variable to hold all the data in the Array in CustomRandomQuestions.js. I tried VarLectoraQuestionList.set(QuestionList) (VarLectoraQuestionList is the variable in lectora and QuestionList is the variable in CustomRandomQuestions). When I do this it just returns object object instead of everything in the array. When I just simply do VarLectoraQuestionList = QuestionList it will return what i want but will not remember it when i move to the next page. Any help here would be great!!