How to get participants from one session to an external link to another session


Author
Message
crnbrrys
crnbrrys
New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)
Group: Forum Members
Posts: 2, Visits: 12
After scouring the forum, I saw that it was suggested to have the external links set up in the batch script, which does have two separate sessions written in:
___________________________
<defaults>
/ finishpage = "link0"
</defaults>

<values>
/ AI_CONDITION
</values>

<batch>
/ sessions = (1 of 2)
/ file = "preAI_11-17.iqjs"
/ onScriptEnd = {
    if (values.AI_CONDITION == 1) {defaults.finishPage = "link1"}   *AI_CONDITION is set in preAI_11-17.iqjs; links have been omitted*
    if (values.AI_CONDITION == 2) {defaults.finishPage = "link2"}
    if (values.AI_CONDITION == 3) {defaults.finishPage = "link3"}
    if (values.AI_CONDITION == 4) {defaults.finishPage = "link4"}
}
</batch>

<batch>
/ sessions = (2 of 2)
/ file = "postAI_11-17.iqjs"
</batch>
_____________________________

But it doesn't seem to actually open the link. Is this because I'm writing my code in the (free version of) Inquisit Lab?
My lab has licenses for the web version, but when this batch and the two other files were uploaded to that, it went straight from the preAI iqjs to the postAI iqjs without stopping to ask session number/ID number (when it did pause in the lab version) and without opening the website link. What am I doing wrong? Is there some kind of setting in the web version that needs to be changed?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 111K
crnbrrys - 11/18/2026
After scouring the forum, I saw that it was suggested to have the external links set up in the batch script, which does have two separate sessions written in:
___________________________
<defaults>
/ finishpage = "link0"
</defaults>

<values>
/ AI_CONDITION
</values>

<batch>
/ sessions = (1 of 2)
/ file = "preAI_11-17.iqjs"
/ onScriptEnd = {
    if (values.AI_CONDITION == 1) {defaults.finishPage = "link1"}   *AI_CONDITION is set in preAI_11-17.iqjs; links have been omitted*
    if (values.AI_CONDITION == 2) {defaults.finishPage = "link2"}
    if (values.AI_CONDITION == 3) {defaults.finishPage = "link3"}
    if (values.AI_CONDITION == 4) {defaults.finishPage = "link4"}
}
</batch>

<batch>
/ sessions = (2 of 2)
/ file = "postAI_11-17.iqjs"
</batch>
_____________________________

But it doesn't seem to actually open the link. Is this because I'm writing my code in the (free version of) Inquisit Lab?
My lab has licenses for the web version, but when this batch and the two other files were uploaded to that, it went straight from the preAI iqjs to the postAI iqjs without stopping to ask session number/ID number (when it did pause in the lab version) and without opening the website link. What am I doing wrong? Is there some kind of setting in the web version that needs to be changed?

Redirection to URLs is for Inquisit Web, not Inquisit Lab. Inquisit Lab does not redirect to any URL ever.

Inquisit Web does not ask for session number. The session number is tracked automatically: When it first sees a given participant ID, that's that participant's session 1. When it sees the same ID again later, that's their session number 2, and so forth.

Alternatively, you can provide the session number explicitly via an URL parameter called sessionid.

Whether your web experiment is generally configured correctly cannot be answered without you providing the link to its launch page.
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 111K
Dave - 11/18/2026
crnbrrys - 11/18/2026
After scouring the forum, I saw that it was suggested to have the external links set up in the batch script, which does have two separate sessions written in:
___________________________
<defaults>
/ finishpage = "link0"
</defaults>

<values>
/ AI_CONDITION
</values>

<batch>
/ sessions = (1 of 2)
/ file = "preAI_11-17.iqjs"
/ onScriptEnd = {
    if (values.AI_CONDITION == 1) {defaults.finishPage = "link1"}   *AI_CONDITION is set in preAI_11-17.iqjs; links have been omitted*
    if (values.AI_CONDITION == 2) {defaults.finishPage = "link2"}
    if (values.AI_CONDITION == 3) {defaults.finishPage = "link3"}
    if (values.AI_CONDITION == 4) {defaults.finishPage = "link4"}
}
</batch>

<batch>
/ sessions = (2 of 2)
/ file = "postAI_11-17.iqjs"
</batch>
_____________________________

But it doesn't seem to actually open the link. Is this because I'm writing my code in the (free version of) Inquisit Lab?
My lab has licenses for the web version, but when this batch and the two other files were uploaded to that, it went straight from the preAI iqjs to the postAI iqjs without stopping to ask session number/ID number (when it did pause in the lab version) and without opening the website link. What am I doing wrong? Is there some kind of setting in the web version that needs to be changed?

Redirection to URLs is for Inquisit Web, not Inquisit Lab. Inquisit Lab does not redirect to any URL ever.

Inquisit Web does not ask for session number. The session number is tracked automatically: When it first sees a given participant ID, that's that participant's session 1. When it sees the same ID again later, that's their session number 2, and so forth.

Alternatively, you can provide the session number explicitly via an URL parameter called sessionid.

Whether your web experiment is generally configured correctly cannot be answered without you providing the link to its launch page.

Here is a simple example you can try for yourself:
https://mili2nd.eu/xnnc

Enter an ID, you will be administered task A, and redirected to www.example.com after.
Run it again with the same ID, and you will be administered task B, and shown the default finish page.

You can also launch the sessions directly via https://mili2nd.eu/xnnc?sessionid=1 and https://mili2nd.eu/xnnc?sessionid=2 respectively.

The code is trivial.

<batch a>
/ sessions = (1 of 2)
/ file = "a.iqjs"
/ onScriptEnd = {
    defaults.finishPage = "https://www.example.com/"
}
</batch>

<batch b>
/ sessions = (2 of 2)
/ file = "b.iqjs"
</batch>

crnbrrys
crnbrrys
New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)New Member (7 reputation)
Group: Forum Members
Posts: 2, Visits: 12
Dave - 11/18/2026
Dave - 11/18/2026
crnbrrys - 11/18/2026
After scouring the forum, I saw that it was suggested to have the external links set up in the batch script, which does have two separate sessions written in:
___________________________
<defaults>
/ finishpage = "link0"
</defaults>

<values>
/ AI_CONDITION
</values>

<batch>
/ sessions = (1 of 2)
/ file = "preAI_11-17.iqjs"
/ onScriptEnd = {
    if (values.AI_CONDITION == 1) {defaults.finishPage = "link1"}   *AI_CONDITION is set in preAI_11-17.iqjs; links have been omitted*
    if (values.AI_CONDITION == 2) {defaults.finishPage = "link2"}
    if (values.AI_CONDITION == 3) {defaults.finishPage = "link3"}
    if (values.AI_CONDITION == 4) {defaults.finishPage = "link4"}
}
</batch>

<batch>
/ sessions = (2 of 2)
/ file = "postAI_11-17.iqjs"
</batch>
_____________________________

But it doesn't seem to actually open the link. Is this because I'm writing my code in the (free version of) Inquisit Lab?
My lab has licenses for the web version, but when this batch and the two other files were uploaded to that, it went straight from the preAI iqjs to the postAI iqjs without stopping to ask session number/ID number (when it did pause in the lab version) and without opening the website link. What am I doing wrong? Is there some kind of setting in the web version that needs to be changed?

Redirection to URLs is for Inquisit Web, not Inquisit Lab. Inquisit Lab does not redirect to any URL ever.

Inquisit Web does not ask for session number. The session number is tracked automatically: When it first sees a given participant ID, that's that participant's session 1. When it sees the same ID again later, that's their session number 2, and so forth.

Alternatively, you can provide the session number explicitly via an URL parameter called sessionid.

Whether your web experiment is generally configured correctly cannot be answered without you providing the link to its launch page.

Here is a simple example you can try for yourself:
https://mili2nd.eu/xnnc

Enter an ID, you will be administered task A, and redirected to www.example.com after.
Run it again with the same ID, and you will be administered task B, and shown the default finish page.

You can also launch the sessions directly via https://mili2nd.eu/xnnc?sessionid=1 and https://mili2nd.eu/xnnc?sessionid=2 respectively.

The code is trivial.

<batch a>
/ sessions = (1 of 2)
/ file = "a.iqjs"
/ onScriptEnd = {
    defaults.finishPage = "https://www.example.com/"
}
</batch>

<batch b>
/ sessions = (2 of 2)
/ file = "b.iqjs"
</batch>

As it turns out, we just put in the wrong batch script, but thank you.

Also, is there a way to get the second session/script to open on its own after five minutes or so after the redirect to the website? Or will that have to be done manually?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 111K
crnbrrys - 11/19/2026
Dave - 11/18/2026
Dave - 11/18/2026
crnbrrys - 11/18/2026
After scouring the forum, I saw that it was suggested to have the external links set up in the batch script, which does have two separate sessions written in:
___________________________
<defaults>
/ finishpage = "link0"
</defaults>

<values>
/ AI_CONDITION
</values>

<batch>
/ sessions = (1 of 2)
/ file = "preAI_11-17.iqjs"
/ onScriptEnd = {
    if (values.AI_CONDITION == 1) {defaults.finishPage = "link1"}   *AI_CONDITION is set in preAI_11-17.iqjs; links have been omitted*
    if (values.AI_CONDITION == 2) {defaults.finishPage = "link2"}
    if (values.AI_CONDITION == 3) {defaults.finishPage = "link3"}
    if (values.AI_CONDITION == 4) {defaults.finishPage = "link4"}
}
</batch>

<batch>
/ sessions = (2 of 2)
/ file = "postAI_11-17.iqjs"
</batch>
_____________________________

But it doesn't seem to actually open the link. Is this because I'm writing my code in the (free version of) Inquisit Lab?
My lab has licenses for the web version, but when this batch and the two other files were uploaded to that, it went straight from the preAI iqjs to the postAI iqjs without stopping to ask session number/ID number (when it did pause in the lab version) and without opening the website link. What am I doing wrong? Is there some kind of setting in the web version that needs to be changed?

Redirection to URLs is for Inquisit Web, not Inquisit Lab. Inquisit Lab does not redirect to any URL ever.

Inquisit Web does not ask for session number. The session number is tracked automatically: When it first sees a given participant ID, that's that participant's session 1. When it sees the same ID again later, that's their session number 2, and so forth.

Alternatively, you can provide the session number explicitly via an URL parameter called sessionid.

Whether your web experiment is generally configured correctly cannot be answered without you providing the link to its launch page.

Here is a simple example you can try for yourself:
https://mili2nd.eu/xnnc

Enter an ID, you will be administered task A, and redirected to www.example.com after.
Run it again with the same ID, and you will be administered task B, and shown the default finish page.

You can also launch the sessions directly via https://mili2nd.eu/xnnc?sessionid=1 and https://mili2nd.eu/xnnc?sessionid=2 respectively.

The code is trivial.

<batch a>
/ sessions = (1 of 2)
/ file = "a.iqjs"
/ onScriptEnd = {
    defaults.finishPage = "https://www.example.com/"
}
</batch>

<batch b>
/ sessions = (2 of 2)
/ file = "b.iqjs"
</batch>

As it turns out, we just put in the wrong batch script, but thank you.

Also, is there a way to get the second session/script to open on its own after five minutes or so after the redirect to the website? Or will that have to be done manually?

> to open on its own after five minutes or so after the redirect to the website?

No, it cannot launch automatically.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search