Hello!
For my study I’m planning to use Qualtrics to present consent forms, then redirect participants to Ibex for a Maze task and finally back to a Qualtrics survey 2 for the rest of the study.
I have managed to grab the random participantID generated by Qualtrics and bring it to ibex, which is passed on successfully onto the 2nd survey after the Maze task. However, when I download the maze results file it’s not showing me any ID column (except from the usual IP, timestamp, and so on).
I tried using .log(“participantID”, participantID) at the end of my trials but it crashes, I think it might be because I’m using var instead of PennController.newTrial (this is the code I inherited from my professor).
I’m fairly new to PCIbex so I’m a bit lost here. Any advice you can give me is greatly appreciated!
This is what I used at the top of my script:
function getURLParam(name) {
var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match ? decodeURIComponent(match[1].replace(/\+/g, ' ')) : "UNKNOWN";
}
var participantID = getURLParam('id');
My items are inside this:
var items = [
["sep","MazeSeparator", {normalMessage:"Press any key to continue", errorMessage:"Press any key to continue"}],
["sr", "__SendResults__", { }],
["setcounter", "__SetCounter__", { }],
["exit","Form", {consentRequired: false, html: {include: "exit.html"}}],
... (practice and critical items are inside here too).. ];
Thank you in advance for your help!