I know that certain variables can be passed from Qualtrics to Pavlovia and then back to Qualtrics by inserting them in the URL, like participant ID. However, I want a variable generated within the PsychoJS task (e.g. RT, the average response time of a certain block of trials) to be passed to Qualtrics for later use. Is that feasible? If yes, then how?
Thanks for the input. I don’t think I’ll need the weblink info in the Python portion, so I used your codes as a reference and rewrote them in JS. (The Py to JS convertion doesn’t really work well with me)
A couple of major difference I noticed - weblink+='&score='+str(totalScore)
becomes weblink+='?score='+totalScore.toString();