(I am new to all this so apologies if this sounds silly)
I am trying to pass a list of words from Pavlovia to Qualtrics…I was hoping I could create a list during my experiment and then pass it onto Qualtrics via URL
Does anyone have an idea of how / if I can do it?
In the task I add the words to ‘adj_list’ in a certain order based on certain conditions (which are different for each participant - that’s why I need to create it every time) and then I pass it to Qualtrics using:
but it doesn’t seem to work (participants do not see the list of words in the Qualtrics questionnaire)
In alternative I could create an excel, csv or txt file with the list, but is there someone with experience in chaining information between Pavlovia and Qualtrics who could advise me on how it would work (since I’d have a different file for each participant)?
Many thanks in advance! I really appreciate your help.
May I only ask you if this would be the correct way to pass the information?
(I am only including prolific ID and the list of words in the following example)
where adj_list is first created at the beginning of the experiment like this: adj_list = [];
and then words appended throughout trials using: adj_list.push(word);
Apologies if these are silly questions but I am new to both js coding and Pavlovia. Thank you!
thank you.
I tried passing the words as separate variables but I am getting an error when trying to sync my newly edited task to Pavlovia (I only changed the completion URL):
RecursionError: maximum recursion depth exceeded while calling a Python object (see screenshot below)
Might this be because the elements I take for the completion URL (adj_list[0], adj_list[1], etc…) do not exist since they are created later on in the experiment?
Or could it be that my URL is too long / is passing too many variables? I am trying to pass 100 words…
Apologies for bothering you again with this, many thanks for your help.
Thank you for the suggestions.
I’ve now set the starting URL as you suggested, then in Begin Routine of a code component towards the end of the experiment I’ve set the JS code to be something like:
this syncs correctly when I only pass few words like in this example above, but it gives me the following errors when I populate the function with all the 100 words I need:
RecursionError: maximum recursion depth exceeded
AttributeError: ‘RecursionError’ object has no attribute ‘message’
I checked the syntax (having such a long function becomes error-prone, but I checked and it should have the correct number of brackets etc…), but it seems like after a certain number of variables that error appears…any suggestion on what else I could try or how to fix it?