Failed to get subject id and group id from URL


Author
Message
MaggieFox
MaggieFox
Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)
Group: Forum Members
Posts: 8, Visits: 26
Hi,
I'm running a project that uses both Qualtrics and Inquisit over a few days. Participants begin on Qualtrics where they are assigned a subject ID using embedded data (random 6-digits), a group number (random 1- 6). I am able to have the subject, group, and day queries pass between Qualtrics surveys without any trouble (that I can see), but when I link Inquisit I get an error that my subject and group IDs aren't coming through. I've attached a screenshot of the error message (and associated URL), but in case it is too small the URL is: https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&?groupid=2&Day=1; and the error says "Failed to get subject id. The url has no parameter named 'groupid'.

In my "Participant IDs" page of the project setup, I've designated that subject and group IDs should come from the URL, labelled as "subjectid" and "groupid" without the apostrophes (second screenshot). 

Am I doing something wrong?

Cheers,
Dave
Attachments
Capture.PNG (329 views, 9.00 KB)
Capture2.PNG (327 views, 18.00 KB)
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: 12K, Visits: 98K
MaggieFox - 11/27/2019
Hi,
I'm running a project that uses both Qualtrics and Inquisit over a few days. Participants begin on Qualtrics where they are assigned a subject ID using embedded data (random 6-digits), a group number (random 1- 6). I am able to have the subject, group, and day queries pass between Qualtrics surveys without any trouble (that I can see), but when I link Inquisit I get an error that my subject and group IDs aren't coming through. I've attached a screenshot of the error message (and associated URL), but in case it is too small the URL is: https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&?groupid=2&Day=1; and the error says "Failed to get subject id. The url has no parameter named 'groupid'.

In my "Participant IDs" page of the project setup, I've designated that subject and group IDs should come from the URL, labelled as "subjectid" and "groupid" without the apostrophes (second screenshot). 

Am I doing something wrong?

Cheers,
Dave

The link you generate is wrong. It has a superfluous "?" which will throw things off.

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&?groupid=2&Day=1



Query parameters work like this:

? precedes the first query parameter, and the first query parameter only. It indicates "here be query parameters."
Any additional parameters after the first are to be preceded with &, and & only.

In short, the link ought to actually read

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&groupid=2&Day=1

and you need to fix that on the Qualtrics-side, where the link is generated.

Edited 5 Years Ago by Dave
MaggieFox
MaggieFox
Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)
Group: Forum Members
Posts: 8, Visits: 26
Dave - 11/28/2019
MaggieFox - 11/27/2019
Hi,
I'm running a project that uses both Qualtrics and Inquisit over a few days. Participants begin on Qualtrics where they are assigned a subject ID using embedded data (random 6-digits), a group number (random 1- 6). I am able to have the subject, group, and day queries pass between Qualtrics surveys without any trouble (that I can see), but when I link Inquisit I get an error that my subject and group IDs aren't coming through. I've attached a screenshot of the error message (and associated URL), but in case it is too small the URL is: https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&?groupid=2&Day=1; and the error says "Failed to get subject id. The url has no parameter named 'groupid'.

In my "Participant IDs" page of the project setup, I've designated that subject and group IDs should come from the URL, labelled as "subjectid" and "groupid" without the apostrophes (second screenshot). 

Am I doing something wrong?

Cheers,
Dave

The link you generate is wrong. It has a superfluous "?" which will throw things off.

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&?groupid=2&Day=1



Query parameters work like this:

? precedes the first query parameter, and the first query parameter only. It indicates "here be query parameters."
Any additional parameters after the first are to be preceded with &, and & only.

In short, the link ought to actually read

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&groupid=2&Day=1

and you need to fix that on the Qualtrics-side, where the link is generated.

Thank you, Dave - you are a true wizard! I corrected as per your instructions, and all is well now.

I had been wracking my brain over this and for the life of me couldn't work out where I'd been going wrong. 


Thanks again!
MaggieFox
MaggieFox
Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)
Group: Forum Members
Posts: 8, Visits: 26
Hi Dave,
Sorry to post again so soon, but I've got a related query.

At the conclusion of the Inquisit session, I want to return participants back to Qualtrics to complete a follow-up survey. The survey is slightly different depending on which day the participants are at (i.e. The end survey on Day 1 is different to Day 2). I have some display logic set up on the Qualtrics end to display certain questions depending whether a participant's URL contains ?Day=1 or ?Day=2 or whatever.

Will the custom finish page option add this query field to the URL automatically? The help guide suggests that the query parameters will be updated with whatever was sent through to Inquisit in the first place, but I wasn't sure if this refers specifically to the query parameters set up on the "Participant ID" page of the script set up, or if it refers to everything that was sent through (including my Day query).

If that wouldn't work, could I try to set up something like this?

<defaults>
/finishpage = "https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?Day"
</defaults>

Apologies if this was a confusing question - I would normally play around with the software packages to see what was happening myself but our institution is currently in a limited-IT situation.


Thanks again!
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: 12K, Visits: 98K
MaggieFox - 11/28/2019
Hi Dave,
Sorry to post again so soon, but I've got a related query.

At the conclusion of the Inquisit session, I want to return participants back to Qualtrics to complete a follow-up survey. The survey is slightly different depending on which day the participants are at (i.e. The end survey on Day 1 is different to Day 2). I have some display logic set up on the Qualtrics end to display certain questions depending whether a participant's URL contains ?Day=1 or ?Day=2 or whatever.

Will the custom finish page option add this query field to the URL automatically? The help guide suggests that the query parameters will be updated with whatever was sent through to Inquisit in the first place, but I wasn't sure if this refers specifically to the query parameters set up on the "Participant ID" page of the script set up, or if it refers to everything that was sent through (including my Day query).

If that wouldn't work, could I try to set up something like this?

<defaults>
/finishpage = "https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?Day"
</defaults>

Apologies if this was a confusing question - I would normally play around with the software packages to see what was happening myself but our institution is currently in a limited-IT situation.


Thanks again!

You don't need any custom finish page option and you don't need to specify the finish page in the script's <defaults> (in fact, make sure that you have *not* specified /finishpage in <defaults>, otherwise that will override what's in the web settings and all URL parameters will be lost). Simply specify the URL for the follow-up survey *without* any query parameters as the URL to redirect to in your web experiment's settings. Any query parameters that *come in* to the Inquisit start page will automatically be preserved and appended to the outgoing URL. I.e. if you specify

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn

as the URL to redirect to, and the incoming URL is

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&groupid=2&Day=1

then the outgoing URL will automatically be

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?subjectid=50082&groupid=2&Day=1

If the incoming URL is

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50083&groupid=1&Day=2

then the outgoing URL will automatically be

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?subjectid=50083&groupid=1&Day=2

and so forth.

You can read in the value of the "Day" parameter in your Qualtrics follow-up survey and adjust survey-flow accordingly.

Edited 5 Years Ago by Dave
MaggieFox
MaggieFox
Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)
Group: Forum Members
Posts: 8, Visits: 26
Dave - 11/28/2019
MaggieFox - 11/28/2019
Hi Dave,
Sorry to post again so soon, but I've got a related query.

At the conclusion of the Inquisit session, I want to return participants back to Qualtrics to complete a follow-up survey. The survey is slightly different depending on which day the participants are at (i.e. The end survey on Day 1 is different to Day 2). I have some display logic set up on the Qualtrics end to display certain questions depending whether a participant's URL contains ?Day=1 or ?Day=2 or whatever.

Will the custom finish page option add this query field to the URL automatically? The help guide suggests that the query parameters will be updated with whatever was sent through to Inquisit in the first place, but I wasn't sure if this refers specifically to the query parameters set up on the "Participant ID" page of the script set up, or if it refers to everything that was sent through (including my Day query).

If that wouldn't work, could I try to set up something like this?

<defaults>
/finishpage = "https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?Day"
</defaults>

Apologies if this was a confusing question - I would normally play around with the software packages to see what was happening myself but our institution is currently in a limited-IT situation.


Thanks again!

You don't need any custom finish page option and you don't need to specify the finish page in the script's <defaults> (in fact, make sure that you have *not* specified /finishpage in <defaults>, otherwise that will override what's in the web settings and all URL parameters will be lost). Simply specify the URL for the follow-up survey *without* any query parameters as the URL to redirect to in your web experiment's settings. Any query parameters that *come in* to the Inquisit start page will automatically be preserved and appended to the outgoing URL. I.e. if you specify

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn

as the URL to redirect to, and the incoming URL is

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&groupid=2&Day=1

then the outgoing URL will automatically be

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?subjectid=50082&groupid=2&Day=1

If the incoming URL is

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50083&groupid=1&Day=2

then the outgoing URL will automatically be

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?subjectid=50083&groupid=1&Day=2

and so forth.

You can read in the value of the "Day" parameter in your Qualtrics follow-up survey and adjust survey-flow accordingly.

Fantastic as always - this is crystal clear (and exactly what I'd hope to hear!). Whatever they're paying you, it isn't enough :)

Thanks Dave!



MaggieFox
MaggieFox
Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)Respected Member (374 reputation)
Group: Forum Members
Posts: 8, Visits: 26
MaggieFox - 11/28/2019
Dave - 11/28/2019
MaggieFox - 11/28/2019
Hi Dave,
Sorry to post again so soon, but I've got a related query.

At the conclusion of the Inquisit session, I want to return participants back to Qualtrics to complete a follow-up survey. The survey is slightly different depending on which day the participants are at (i.e. The end survey on Day 1 is different to Day 2). I have some display logic set up on the Qualtrics end to display certain questions depending whether a participant's URL contains ?Day=1 or ?Day=2 or whatever.

Will the custom finish page option add this query field to the URL automatically? The help guide suggests that the query parameters will be updated with whatever was sent through to Inquisit in the first place, but I wasn't sure if this refers specifically to the query parameters set up on the "Participant ID" page of the script set up, or if it refers to everything that was sent through (including my Day query).

If that wouldn't work, could I try to set up something like this?

<defaults>
/finishpage = "https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?Day"
</defaults>

Apologies if this was a confusing question - I would normally play around with the software packages to see what was happening myself but our institution is currently in a limited-IT situation.


Thanks again!

You don't need any custom finish page option and you don't need to specify the finish page in the script's <defaults> (in fact, make sure that you have *not* specified /finishpage in <defaults>, otherwise that will override what's in the web settings and all URL parameters will be lost). Simply specify the URL for the follow-up survey *without* any query parameters as the URL to redirect to in your web experiment's settings. Any query parameters that *come in* to the Inquisit start page will automatically be preserved and appended to the outgoing URL. I.e. if you specify

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn

as the URL to redirect to, and the incoming URL is

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&groupid=2&Day=1

then the outgoing URL will automatically be

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?subjectid=50082&groupid=2&Day=1

If the incoming URL is

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50083&groupid=1&Day=2

then the outgoing URL will automatically be

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?subjectid=50083&groupid=1&Day=2

and so forth.

You can read in the value of the "Day" parameter in your Qualtrics follow-up survey and adjust survey-flow accordingly.

Fantastic as always - this is crystal clear (and exactly what I'd hope to hear!). Whatever they're paying you, it isn't enough :)

Thanks Dave!



Dave, is it also possible for me to add the "Day" query value into my data files? I understand that Inquisit stores this somewhere for the purposes of sending it on again (as with the above reply), but can I request that this also be entered as a data column? 


Cheers,
Dave
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: 12K, Visits: 98K
MaggieFox - 11/28/2019
MaggieFox - 11/28/2019
Dave - 11/28/2019
MaggieFox - 11/28/2019
Hi Dave,
Sorry to post again so soon, but I've got a related query.

At the conclusion of the Inquisit session, I want to return participants back to Qualtrics to complete a follow-up survey. The survey is slightly different depending on which day the participants are at (i.e. The end survey on Day 1 is different to Day 2). I have some display logic set up on the Qualtrics end to display certain questions depending whether a participant's URL contains ?Day=1 or ?Day=2 or whatever.

Will the custom finish page option add this query field to the URL automatically? The help guide suggests that the query parameters will be updated with whatever was sent through to Inquisit in the first place, but I wasn't sure if this refers specifically to the query parameters set up on the "Participant ID" page of the script set up, or if it refers to everything that was sent through (including my Day query).

If that wouldn't work, could I try to set up something like this?

<defaults>
/finishpage = "https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?Day"
</defaults>

Apologies if this was a confusing question - I would normally play around with the software packages to see what was happening myself but our institution is currently in a limited-IT situation.


Thanks again!

You don't need any custom finish page option and you don't need to specify the finish page in the script's <defaults> (in fact, make sure that you have *not* specified /finishpage in <defaults>, otherwise that will override what's in the web settings and all URL parameters will be lost). Simply specify the URL for the follow-up survey *without* any query parameters as the URL to redirect to in your web experiment's settings. Any query parameters that *come in* to the Inquisit start page will automatically be preserved and appended to the outgoing URL. I.e. if you specify

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn

as the URL to redirect to, and the incoming URL is

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50082&groupid=2&Day=1

then the outgoing URL will automatically be

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?subjectid=50082&groupid=2&Day=1

If the incoming URL is

https://research.millisecond.com/dskvarc/eatpie.web?subjectid=50083&groupid=1&Day=2

then the outgoing URL will automatically be

https://researchsurveys.deakin.edu.au/jfe/form/SV_9KXgy6HkdhAp8tn?subjectid=50083&groupid=1&Day=2

and so forth.

You can read in the value of the "Day" parameter in your Qualtrics follow-up survey and adjust survey-flow accordingly.

Fantastic as always - this is crystal clear (and exactly what I'd hope to hear!). Whatever they're paying you, it isn't enough :)

Thanks Dave!



Dave, is it also possible for me to add the "Day" query value into my data files? I understand that Inquisit stores this somewhere for the purposes of sending it on again (as with the above reply), but can I request that this also be entered as a data column? 


Cheers,
Dave

No, that is not possible, I'm afraid. The parameter, however, should show up in your web logs, which you can eventually download and merge with the remaining data using a data analysis software of your choice.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search