After reading this post: Can I pass a list from Pavlovia to Qualtrics via URL?
I’ve changed my approach and I’m going to try using PsychoJS.setRedirectUrls.
In the first routine of my experiment. I have the following in my Begin Experiment tab:
weblink = "https://nottinghampsych.eu.qualtrics.com/jfe/form/SV_a4ePYxKCU47jPIF";
Then, in the final routine of my experiment, I have this in the ‘Begin Routine’ tab:
weblink += ("?score=" + totalScore.toString());
psychoJS.setRedirectUrls(weblink, "https://nottinghampsych.eu.qualtrics.com/jfe/form/SV_a4ePYxKCU47jPIF");
I’m hoping that this should redirect them to the survey with the totalScore variable if they’ve completed the experiment.
Do I need to do anything extra in qualtrics to ensure that the variable is correctly saved and appears in my qualtrics csv file?
Thank you!