Description of the problem: I am running an online experiment that consists of three tasks in a row so I used the instructions given somewhere (I cannot seem to find it again, where I add the link to the next task to the psychopy task) and results in the following code:
// add info from the URL:
util.addInfoFromUrl(expInfo);
psychoJS.setRedirectUrls('https://run.pavlovia.org/cmfo/generationtask/html', '');
However, it seems to be failing quite often. At least half of the participants mention that the screen for the next experiment appears and then goes black. What is wrong? It was working normally before but now I am losing information on a lot of participants!
That’s what I did, it still fails to do it correctly. I wish I could understand what is happening because I have lost data on at least 10 participants already.
I see that you’ve edited the name of the participant expInfo variable. I feel like that is likely to cause an issue for saving data and the redirection.
Has it ever worked since you did that? Please could you show the code you are using for the redirect? Are you trying to carry the participant ID to the next stage?
@wakecarter I tried using this code on the complete URL but it does not allow me to press OK. Did I do something wrong? Is it because I changed the participant field to “Participant ID (Your initials and the last 5 digits of your phone number, example: JS45323)”?
“https://run.pavlovia.org/cmfo/generationtask/html/?participant= ”+ $expInfo['Participant ID (Your initials and the last 5 digits of your phone number, example: JS45323)']
It may be that the punctuation in your participant question are the problem. If so, it would be good to identify which can’t be used. However, in the first instance you should remove the space after participant= and maybe the / after html so it’s html?participant=“+expInfo…
I just took a look at your psyexp file to check your syntax but it just has https://run.pavlovia.org/cmfo/pvt2/html in the Completed URL for SRT Builder no ISI.
Sorry, I am trying it out on a trial task as the other tasks are already being used to collect data and I did not want to disrupt that. The task I am using to trial it out is this one: https://run.pavlovia.org/cmfo/kjdgywdf/html
isn’t going to work because it contains additional non-standard quotes. Try
psychoJS.setRedirectUrls("https://run.pavlovia.org/cmfo/generationtask/html?participant="+expInfo['Participant ID (Your initials and the last 5 digits of your phone number, example: JS45323)']");
However, I don’t know if this will work because I was talking about what to put in the PsychoPy file.
I agree that I think it’s the quotes. @wakecarter I actually edited your response to put the code into a code box (needs backticks or triple-bacticks) because otherwise Discrouse also make the quotes “smart” and therefore incorrect!
Participant ID (Your initials and the last 5 digits of your phone number, example: JS45323)
I’m not sure what kind of ethics you have, but this might be too much identifying information. I know that isn’t the topic of the thread, but I thought it might be good to mention.