Inquisit web - redirect to different url based on group id


Author
Message
ylyl27
ylyl27
Associate Member (139 reputation)Associate Member (139 reputation)Associate Member (139 reputation)Associate Member (139 reputation)Associate Member (139 reputation)Associate Member (139 reputation)Associate Member (139 reputation)Associate Member (139 reputation)Associate Member (139 reputation)
Group: Forum Members
Posts: 12, Visits: 88
Hi! My experiment has two conditions and after the study I want participants to be redirected to two different survey links based on their group id. I wrote two scripts for each condition separately.
When groupid = 1, we will run script 1, and participants will be redirected to survey 1 url. When group id = 2, we will run script 2, and participants will be redirected to survey 2 url.
Here's part of my script:
<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "exp_condition1.iqx"
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "exp_condition2.iqx"
</batch>

In exp_condition1.iqx, I have this:
<text url>
/ items = urlitems
</text>

<item urlitems>
/1 = "https://qualtricslink1?id=<%script.subjectid%>"
/2 = "https://qualtricslink2?id=<%script.subjectid%>"
</item>

<expt Tasks>
/ onexptbegin = [defaults.finishpage = text.url.item.1;]
/ blocks = [1=instru]
</expt>

In exp_condition2.iqx, I have:
<text url>
/ items = urlitems
</text>

<item urlitems>
/1 = "https://qualtricslink1?id=<%script.subjectid%>"
/2 = "https://qualtricslink2?id=<%script.subjectid%>"
</item>

<expt Tasks>
/ onexptbegin = [defaults.finishpage = text.url.item.2;]
/ blocks = [1=instru]
</expt>

I have two questions: 1) is my script correct? and 2) how should I setup the Finish Page on Inquisit Web? I notice that there are three options for the finish page: redirect to the default finish web page, redirect to a custom finish page, or redirect to an external web site. I guess I should choose "redirect to an external web site", but it looks like you can only enter one url there...

Thank you!!

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search