Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+xHi guys, I've read through this thread and I must admit I am truly a beginner at this. I jave no idea what the posters are saying in their script examples. If I want my participants to be automatically redirected to the same url at the end of the experiment, and carry a subject ID with it. Is this possible? Thanks in advance for the help guys. Matt. See "Sending the Subject ID from Inquisit to 3rd Party Sites" at https://www.millisecond.com/support/docs/v6/html/howto/interopsurveys.htm
|
|
|
M Gerathy
|
|
Group: Forum Members
Posts: 17,
Visits: 45
|
Hi guys,
I've read through this thread and I must admit I am truly a beginner at this. I jave no idea what the posters are saying in their script examples.
If I want my participants to be automatically redirected to the same url at the end of the experiment, and carry a subject ID with it. Is this possible?
Thanks in advance for the help guys.
Matt.
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+x+x+x+x+x+x> However, sometimes participants get forwarded to the correct link and sometimes they get forwarded to the wrong link. Could you please show me the data you based this conclusion on? And, for what it's worth, you can simplify your code and get rid of the 1st <expt> element: <expt> / onexptbegin = [defaults.finishpage = text.url.item.1; ] /subjects = (1 of 2) /groupassignment = groupnumber / blocks = [1=practice_compatibletest; 2=compatibletestinstructions; 3=compatibletest; 4=practice_incompatibletest; 5=incompatibletestinstructions; 6=incompatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> <expt> / onexptbegin = [defaults.finishpage = text.url.item.2; ]/subjects = (2 of 2) /groupassignment = groupnumber / blocks = [1=practice_incompatibletest; 2=incompatibletestinstructions; 3=incompatibletest; 4=practice_compatibletest; 5=compatibletestinstructions; 6=compatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> Hello Dave, in which form could I show you the data? I tried it more than a several times now and I realized that when the inquisit task starts with the compatible block first, participants get forwarded to link 1, and when inquisit starts with the incompatible block, participants get forwarded to link 2. So there seems to be something wrong with that. Any idea what it could be? And why would that be wrong? That's exactly what the code is supposed to do. For odd group numbers, you want to re-direct to URL #1. For even group numbers you want to re-direct to URL #2. It just so happens that the IAT _also_ assigns conditions (i.e. different block orders: compatible first vs incompatible first) based on odd vs even group numbers, as you can see per the <expt> elements' /groupassignment attributes. I want the participants with the group ID = 1 to always getforwarded to the link https://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&def_nr=2345&def_study=007 and participants with the group ID = 2 to always get forwardedto the link https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007 independent of with which block they start the inquisittask. At the moment however if someone comes from the group with the ID = 1 and gets the incompatibleblock first, he/she gets forwarded to https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007 which is wrong for my experiment. The same issue applies to the people who have the group ID = 2 but get the compatible blockfirst. They get forwarded to https://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&def_nr=2345&def_study=007 but I want them to always get forwarded to https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007
Is this understandable? And how could I solve this issue? Many thanks in advance! Then you need to change how the script assigns the IAT conditions (block order), i.e. you need to decouple it from the group ID which you want to independently use to determine the redirection URL. You can either set /grouassignment = subjectnumber for the IAT to do condition assignment based on a numerical subject ID (it _will not_ work with a non-numerical ID), or set /grouassignment = random for completely random assignment to one of the IAT block orders. Thanks! I set the /groupassignment in the expt section of both blocks = random. What else do I need to adjust? Because it is still not working as supposed by simply changing this. Thanks! You need to set the URL to re-direct to /onexptbegin based on the group number as already discussed in this thread, e.g. here: https://www.millisecond.com/forums/FindPost22063.aspxYou, of course, need to also make sure that you actually _read in_ the group number you pass to the launch page, so that the script actually _knows_ about it. You do that by selecting the URL query parameter option for group IDs in your web experiment's settings.
|
|
|
carolin.m
|
|
Group: Forum Members
Posts: 19,
Visits: 54
|
+x+x+x+x+x> However, sometimes participants get forwarded to the correct link and sometimes they get forwarded to the wrong link. Could you please show me the data you based this conclusion on? And, for what it's worth, you can simplify your code and get rid of the 1st <expt> element: <expt> / onexptbegin = [defaults.finishpage = text.url.item.1; ] /subjects = (1 of 2) /groupassignment = groupnumber / blocks = [1=practice_compatibletest; 2=compatibletestinstructions; 3=compatibletest; 4=practice_incompatibletest; 5=incompatibletestinstructions; 6=incompatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> <expt> / onexptbegin = [defaults.finishpage = text.url.item.2; ]/subjects = (2 of 2) /groupassignment = groupnumber / blocks = [1=practice_incompatibletest; 2=incompatibletestinstructions; 3=incompatibletest; 4=practice_compatibletest; 5=compatibletestinstructions; 6=compatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> Hello Dave, in which form could I show you the data? I tried it more than a several times now and I realized that when the inquisit task starts with the compatible block first, participants get forwarded to link 1, and when inquisit starts with the incompatible block, participants get forwarded to link 2. So there seems to be something wrong with that. Any idea what it could be? And why would that be wrong? That's exactly what the code is supposed to do. For odd group numbers, you want to re-direct to URL #1. For even group numbers you want to re-direct to URL #2. It just so happens that the IAT _also_ assigns conditions (i.e. different block orders: compatible first vs incompatible first) based on odd vs even group numbers, as you can see per the <expt> elements' /groupassignment attributes. I want the participants with the group ID = 1 to always getforwarded to the link https://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&def_nr=2345&def_study=007 and participants with the group ID = 2 to always get forwardedto the link https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007 independent of with which block they start the inquisittask. At the moment however if someone comes from the group with the ID = 1 and gets the incompatibleblock first, he/she gets forwarded to https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007 which is wrong for my experiment. The same issue applies to the people who have the group ID = 2 but get the compatible blockfirst. They get forwarded to https://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&def_nr=2345&def_study=007 but I want them to always get forwarded to https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007
Is this understandable? And how could I solve this issue? Many thanks in advance! Then you need to change how the script assigns the IAT conditions (block order), i.e. you need to decouple it from the group ID which you want to independently use to determine the redirection URL. You can either set /grouassignment = subjectnumber for the IAT to do condition assignment based on a numerical subject ID (it _will not_ work with a non-numerical ID), or set /grouassignment = random for completely random assignment to one of the IAT block orders. Thanks! I set the /groupassignment in the expt section of both blocks = random. What else do I need to adjust? Because it is still not working as supposed by simply changing this. Thanks!
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+x+x+x+x> However, sometimes participants get forwarded to the correct link and sometimes they get forwarded to the wrong link. Could you please show me the data you based this conclusion on? And, for what it's worth, you can simplify your code and get rid of the 1st <expt> element: <expt> / onexptbegin = [defaults.finishpage = text.url.item.1; ] /subjects = (1 of 2) /groupassignment = groupnumber / blocks = [1=practice_compatibletest; 2=compatibletestinstructions; 3=compatibletest; 4=practice_incompatibletest; 5=incompatibletestinstructions; 6=incompatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> <expt> / onexptbegin = [defaults.finishpage = text.url.item.2; ]/subjects = (2 of 2) /groupassignment = groupnumber / blocks = [1=practice_incompatibletest; 2=incompatibletestinstructions; 3=incompatibletest; 4=practice_compatibletest; 5=compatibletestinstructions; 6=compatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> Hello Dave, in which form could I show you the data? I tried it more than a several times now and I realized that when the inquisit task starts with the compatible block first, participants get forwarded to link 1, and when inquisit starts with the incompatible block, participants get forwarded to link 2. So there seems to be something wrong with that. Any idea what it could be? And why would that be wrong? That's exactly what the code is supposed to do. For odd group numbers, you want to re-direct to URL #1. For even group numbers you want to re-direct to URL #2. It just so happens that the IAT _also_ assigns conditions (i.e. different block orders: compatible first vs incompatible first) based on odd vs even group numbers, as you can see per the <expt> elements' /groupassignment attributes. I want the participants with the group ID = 1 to always getforwarded to the link https://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&def_nr=2345&def_study=007 and participants with the group ID = 2 to always get forwardedto the link https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007 independent of with which block they start the inquisittask. At the moment however if someone comes from the group with the ID = 1 and gets the incompatibleblock first, he/she gets forwarded to https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007 which is wrong for my experiment. The same issue applies to the people who have the group ID = 2 but get the compatible blockfirst. They get forwarded to https://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&def_nr=2345&def_study=007 but I want them to always get forwarded to https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007
Is this understandable? And how could I solve this issue? Many thanks in advance! Then you need to change how the script assigns the IAT conditions (block order), i.e. you need to decouple it from the group ID which you want to independently use to determine the redirection URL. You can either set /grouassignment = subjectnumber for the IAT to do condition assignment based on a numerical subject ID (it _will not_ work with a non-numerical ID), or set /grouassignment = random for completely random assignment to one of the IAT block orders.
|
|
|
carolin.m
|
|
Group: Forum Members
Posts: 19,
Visits: 54
|
+x+x+x> However, sometimes participants get forwarded to the correct link and sometimes they get forwarded to the wrong link. Could you please show me the data you based this conclusion on? And, for what it's worth, you can simplify your code and get rid of the 1st <expt> element: <expt> / onexptbegin = [defaults.finishpage = text.url.item.1; ] /subjects = (1 of 2) /groupassignment = groupnumber / blocks = [1=practice_compatibletest; 2=compatibletestinstructions; 3=compatibletest; 4=practice_incompatibletest; 5=incompatibletestinstructions; 6=incompatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> <expt> / onexptbegin = [defaults.finishpage = text.url.item.2; ]/subjects = (2 of 2) /groupassignment = groupnumber / blocks = [1=practice_incompatibletest; 2=incompatibletestinstructions; 3=incompatibletest; 4=practice_compatibletest; 5=compatibletestinstructions; 6=compatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> Hello Dave, in which form could I show you the data? I tried it more than a several times now and I realized that when the inquisit task starts with the compatible block first, participants get forwarded to link 1, and when inquisit starts with the incompatible block, participants get forwarded to link 2. So there seems to be something wrong with that. Any idea what it could be? And why would that be wrong? That's exactly what the code is supposed to do. For odd group numbers, you want to re-direct to URL #1. For even group numbers you want to re-direct to URL #2. It just so happens that the IAT _also_ assigns conditions (i.e. different block orders: compatible first vs incompatible first) based on odd vs even group numbers, as you can see per the <expt> elements' /groupassignment attributes. I want the participants with the group ID = 1 to always getforwarded to the link https://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&def_nr=2345&def_study=007 and participants with the group ID = 2 to always get forwardedto the link https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007 independent of with which block they start the inquisittask. At the moment however if someone comes from the group with the ID = 1 and gets the incompatibleblock first, he/she gets forwarded to https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007 which is wrong for my experiment. The same issue applies to the people who have the group ID = 2 but get the compatible blockfirst. They get forwarded to https://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&def_nr=2345&def_study=007 but I want them to always get forwarded to https://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&def_nr=2345&def_study=007
Is this understandable? And how could I solve this issue? Many thanks in advance!
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
+x+x> However, sometimes participants get forwarded to the correct link and sometimes they get forwarded to the wrong link. Could you please show me the data you based this conclusion on? And, for what it's worth, you can simplify your code and get rid of the 1st <expt> element: <expt> / onexptbegin = [defaults.finishpage = text.url.item.1; ] /subjects = (1 of 2) /groupassignment = groupnumber / blocks = [1=practice_compatibletest; 2=compatibletestinstructions; 3=compatibletest; 4=practice_incompatibletest; 5=incompatibletestinstructions; 6=incompatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> <expt> / onexptbegin = [defaults.finishpage = text.url.item.2; ]/subjects = (2 of 2) /groupassignment = groupnumber / blocks = [1=practice_incompatibletest; 2=incompatibletestinstructions; 3=incompatibletest; 4=practice_compatibletest; 5=compatibletestinstructions; 6=compatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> Hello Dave, in which form could I show you the data? I tried it more than a several times now and I realized that when the inquisit task starts with the compatible block first, participants get forwarded to link 1, and when inquisit starts with the incompatible block, participants get forwarded to link 2. So there seems to be something wrong with that. Any idea what it could be? And why would that be wrong? That's exactly what the code is supposed to do. For odd group numbers, you want to re-direct to URL #1. For even group numbers you want to re-direct to URL #2. It just so happens that the IAT _also_ assigns conditions (i.e. different block orders: compatible first vs incompatible first) based on odd vs even group numbers, as you can see per the <expt> elements' /groupassignment attributes.
|
|
|
carolin.m
|
|
Group: Forum Members
Posts: 19,
Visits: 54
|
+x> However, sometimes participants get forwarded to the correct link and sometimes they get forwarded to the wrong link. Could you please show me the data you based this conclusion on? And, for what it's worth, you can simplify your code and get rid of the 1st <expt> element: <expt> / onexptbegin = [defaults.finishpage = text.url.item.1; ] /subjects = (1 of 2) /groupassignment = groupnumber / blocks = [1=practice_compatibletest; 2=compatibletestinstructions; 3=compatibletest; 4=practice_incompatibletest; 5=incompatibletestinstructions; 6=incompatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> <expt> / onexptbegin = [defaults.finishpage = text.url.item.2; ]/subjects = (2 of 2) /groupassignment = groupnumber / blocks = [1=practice_incompatibletest; 2=incompatibletestinstructions; 3=incompatibletest; 4=practice_compatibletest; 5=compatibletestinstructions; 6=compatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> Hello Dave, in which form could I show you the data? I tried it more than a several times now and I realized that when the inquisit task starts with the compatible block first, participants get forwarded to link 1, and when inquisit starts with the incompatible block, participants get forwarded to link 2. So there seems to be something wrong with that. Any idea what it could be?
|
|
|
Dave
|
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
> However, sometimes participants get forwarded to the correct link and sometimes they get forwarded to the wrong link. Could you please show me the data you based this conclusion on? And, for what it's worth, you can simplify your code and get rid of the 1st <expt> element: <expt> / onexptbegin = [defaults.finishpage = text.url.item.1; ] /subjects = (1 of 2) /groupassignment = groupnumber / blocks = [1=practice_compatibletest; 2=compatibletestinstructions; 3=compatibletest; 4=practice_incompatibletest; 5=incompatibletestinstructions; 6=incompatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> <expt> / onexptbegin = [defaults.finishpage = text.url.item.2; ]/subjects = (2 of 2) /groupassignment = groupnumber / blocks = [1=practice_incompatibletest; 2=incompatibletestinstructions; 3=incompatibletest; 4=practice_compatibletest; 5=compatibletestinstructions; 6=compatibletest; 7=summary] /onexptend = [values.completed = 1] </expt>
|
|
|
carolin.m
|
|
Group: Forum Members
Posts: 19,
Visits: 54
|
Hello Dave, although the other issue is solved now this problem still occurs: I want to refer my participants to two different webpages after the inquisit task, depending on the web page they came from. I am pretty sure that I adjusted everything as described by you. However, sometimes participants get forwarded to the correct link and sometimes they get forwarded to the wrong link. What could be wrong? Please see below the important parts of my script: Site A: http://research.millisecond.com/carolinmuschalik/singlecategorypictureiat_rood_vlees.web?subjectid=123&study=999&groupid=1Site B: http://research.millisecond.com/carolinmuschalik/singlecategorypictureiat_rood_vlees.web?subjectid=123&study=999&groupid=2<expt> / onexptbegin = [if (mod(script.groupid, 2) == 1) {defaults.finishpage = text.url.item.1}; ] / onexptbegin = [if (mod(script.groupid, 2) == 0) {defaults.finishpage = text.url.item.2}; ] </expt> <expt> /subjects = (1 of 2) /groupassignment = groupnumber / blocks = [1=practice_compatibletest; 2=compatibletestinstructions; 3=compatibletest; 4=practice_incompatibletest; 5=incompatibletestinstructions; 6=incompatibletest; 7=summary] /onexptend = [values.completed = 1] </expt> <expt> /subjects = (2 of 2) /groupassignment = groupnumber / blocks = [1=practice_incompatibletest; 2=incompatibletestinstructions; 3=incompatibletest; 4=practice_compatibletest; 5=compatibletestinstructions; 6=compatibletest; 7=summary] /onexptend = [values.completed = 1] </expt>
<text url> / items = urlitems </text> <item urlitems> / 1 = "http://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&nr=<%script.subjectid%>&study=184680">http://fd8.formdesk.com/umhag/vlees_consumptie2?page=3&nr=<%script.subjectid%>&study=184680" / 2 = "http://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&nr=<%script.subjectid%>&study=184680">http://fd8.formdesk.com/umhag/kopie_van_vlees_consumptie2?page=3&nr=<%script.subjectid%>&study=184680" </item>
It would be great if you could help me with that! Thanks in advance!
|
|
|