Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 6
»
Redirecting participants to different websites, chosen within the...
Redirecting participants to different websites, chosen within the experiment
Post Reply
Like
0
Redirecting participants to different websites, chosen within the...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Sercan
Sercan
posted 2 Weeks Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Forum Members
Posts: 37,
Visits: 165
Hello! We will receive participants from several different participant pools, so we need to redirect them to different sites afterwards to give them credit. However, our logs show that everyone is being redirected to the same page: Prolific, with a custom completion code added to the end (i.e., not "INITIALIZED" like in the code). Could you show us how we can ensure that the script can dynamically and safely set the finish page? We already confirmed that "parameters.finishpagetype" is being set correctly.
Full Experiment
<defaults>
/ minimumversion = "6.0.0.0"
/ finishpage = "
https://app.prolific.co/submissions/complete?cc=INITIALIZED"
</defaults>
<batch fullexperiment>
/ file = "infopage.iqx"
/ file = "DelayAAT.iqx"
/ file = "debriefing.iqx"
/ onscriptend = [
// set language
if(batch.fullexperiment.currentscript=="infopage.iqx"){
parameters.finishpagetype=values.finishpagetype;
}
//////////////////////
// Completion codes //
//////////////////////
if(parameters.finishpagetype=="Prolific"){
defaults.finishpage = "
https://app.prolific.co/submissions/complete?cc=<%parameters.completioncode%>";
}
if(parameters.finishpagetype == "SalzburgUni"){
defaults.finishpage = "
https://XXXXX.sona-systems.com/webstudy_credit.aspx?experiment_id=XXXXX&credit_token=<%parameters.completioncode%>&survey_code=<%script.groupid%>";
}
if(parameters.finishpagetype=="Other"){
if(values.completioncode == values.correctcc){
defaults.finishpage="
https://XXXXX?lang=en";
}else{
defaults.finishpage="
https://google.com/";
}
}
]
</batch>
##############
# completion #
<values>
/ correctcc = "XXXXX"
/ screenoutcc = "XXXXX"
/ rejectcc = "XXXXX"
/ finishpagetype = 0
</values>
<parameters fullexperiment>
/ completioncode = "INCOMPLETE"
/ finishpagetype = "indeterminate"
</parameters>
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Redirecting participants to different websites, chosen within the...
Sercan
-
2 Weeks Ago
You must select "Redirect to the default finish page" in the web...
Dave
-
2 Weeks Ago
Unfortunately the issue persists. The issue seems to be that the...
Sercan
-
Last Week
Then you're not actually setting the parameter.
Dave
-
Last Week
Some more testing reveals that the / onscriptend bit is aborted once...
Sercan
-
Last Week
Then you have syntax mistakes. You don't show the actual code, so...
Dave
-
Last Week
If parameters.finishpagetype is set to anything else, then no such...
Sercan
-
Last Week
Again, whithout you showing the actual code you're talking about,...
Dave
-
Last Week
Here is the full batch script. I've confirmed that everything before...
Sercan
-
Last Week
It appears the issue was caused by my use of values.completioncode,...
Sercan
-
Last Week
Okay, so is it sorted now? If yes, then I need not spend additional...
Dave
-
Last Week
Yes, it is settled.
Sercan
-
Last Week
Excellent, thank you.
Dave
-
Last Week
Post Reply
Like
0
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search