What’s the deal with the completedURL and incompleteURL. I noticed that after I finish an experiment online, my browser is directed to a website called completedURL if I finished and the other one if the experiment wasn’t completed. Are we able to customize what page participants are directed to yet? Or is this the foundation of a feature that isn’t completed yet?
Hi @unagi_pie, yes the idea is that when participants from a recruirment service, such as Prolific, take part in online your experiment, they can be redirected upon completion of your task using your “CompletedURL” address where they can be rewarded. Participants who fail to complete can be redirected to the IncompleteURL address.
Thanks @dvbridges. So, is there a way for me to set a CompletedURL? Ideally, I’d like the redirect participants who have completed the experiment to a page where they can fill out a questionnaire. Is this possible?
Hi @dvbridges, thanks for your reply. In the documentation, I find how to have psychopy read info from URLs and to write static information into URLs.
I’m looking for something a bit different: I want to have psychopy write dynamic info, such as the participant id into the completionURL.
Specifically, I want to redirect participants to Qualtrics after completing the experiment and have psychopy write the variable participant (unique for each ppt) into the completionURL, to have Qualtrics read it.
Sure, so what you need to do is use the completedURL field in the experiment settings, but add the contents as code using the dollar sign. E.g., $"url/" + expInfo['participant']. If i enter my participant ID as 1234 at the beginning of my Pavlovia task, this will redirect to a URL formatted as url/1234.
I am trying to do approximately the same. At the end of my experiment, the participants have to answer some questions in Qualtrics (I have a so called anonymous link) but I want to link the answers from qualtrics to the appropriate experiment participant/data and I don’t know how… I tried this:
$“url/” + expInfo[‘participant’]
but this doesn’t work.
If I add the link in “completed url” without the “+…” it works but it doesn’t help to link the two together.
@aelreym did you literally write “url/” in the field though? David is suggesting that you insert your (qualtrics) URL into that location, and there’s probably some character at the end that Qualtrics expects, beginning with a ?
So it might be something like
But as soon as I add + expInfo['participant'] the link gets inactive and it shows me “not found”.
I am looking for something like this so that I can link the answers from qualtrics to the participant results’ of my experiment in Pavlovia.
Thanks @doerte for the question! I have a similar issue:
I would like to generate the completedURL depending on the responses in the task. For example, forward all participants with a certain accuracy level to either urlA or urlB. Basically, something like this:
Thanks for your idea. Unfortunately that didn’t work for me, because in the js the variable was still created after the redirect link was set. I just moved the generation of the random code to an earlier point in the .js directly. That fixed the problem for me. This of course wouldn’t work for something as @lnnrtwttkhn is looking for where the URL actually depends on the performance in the task.