Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
Randomised Multiple Redirects
https://forums.millisecond.com/Topic13801.aspx
By Research316
-
7/15/2014
After the test is completed is there a way to redirect to one of two websites and can this be randomised so that one participant goes to one and the next participant goes to the other
By Dave
-
7/15/2014
Yes, you can set the URL to redirect to in your Inquisit *script* via the defaults.finishpage property.
By Research316
-
7/21/2014
Thanks
By Research316
-
7/21/2014
Thanks for your reply Dave, I know how to do it for a singular url but can two be in putted to coinside with the block randomisation. I basically want one group to be redirected to one site and the other group to another
By Dave
-
7/21/2014
Yes, of course. Suppose you have two experimental groups, then you simply do
<expt>
/ onexptbegin = [defaults.finishpage="http://www.google.com"]
/ subjects = (1 of 2)
...
</expt>
<expt>
/ onexptbegin = [defaults.finishpage="http://www.bing.com"]
/ subjects = (2 of 2)
...
</expt>
By Research316
-
7/22/2014
Thanks Dave,
I want it at the end of the IAT so I take it I should use onexptend = ..........
By Dave
-
7/22/2014
It doesn't make a difference here whether you use /onexptbegin or /onexptend. You already know the experimental group *at the beginning of the experiment* and hence you can set the applicable finish page at that point.
By Research316
-
10/10/2014
Hi just a quick question on this topic, does the redirect only work with the web scripts or will it also work using the desktop version?
By Research316
-
10/10/2014
I also get this error - Expression 'defaults.finishpage' is invalid. Expression contains an unknown element or property name?
By Dave
-
10/10/2014
> Hi just a quick question on this topic, does the redirect only work with the web scripts or will it also work using the desktop
> version?
Redirection only applies to the web version.
> I also get this error - Expression 'defaults.finishpage' is invalid. Expression contains an unknown element or property name?
This would either indicate you are using a different / outdated Inquisit version (e.g. Inquisit 3 instead of 4) or some other mistake in the respective code.
By Research316
-
10/10/2014
Thanks will try updating