# Problems passing variables from Pavlovia to Qualtrics through query string

**URL:** <https://discourse.psychopy.org/t/problems-passing-variables-from-pavlovia-to-qualtrics-through-query-string/16514>\
**Category:** Online experiments\
**Created:** [September 15, 2020, 5:00pm UTC](https://discourse.psychopy.org/t/problems-passing-variables-from-pavlovia-to-qualtrics-through-query-string/16514 "2020-09-15T17:00:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaraCal](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/saracal/32/10209_2.png) [@SaraCal](https://discourse.psychopy.org/u/SaraCal)\
**Post date:** [September 15, 2020, 5:00pm UTC](https://discourse.psychopy.org/t/problems-passing-variables-from-pavlovia-to-qualtrics-through-query-string/16514/1 "2020-09-15T17:00:43Z")

</div>

URL of experiment: [https://pavlovia.org/run/sxc1127/cued-task-switching/html/](https://pavlovia.org/run/sxc1127/cued-task-switching/html/)

(here’s also my psyexp code in case the link doesn’t work)  
[sara\_task\_switch\_beh\_psychopy.psyexp](https://discourse.psychopy.org/uploads/short-url/7tXyjxo1Ymx4nueSBdjjB6JQneD.psyexp) (211.8 KB)

Description of the problem:

I am trying to pass the following variables from Pavlovia to Qualtrics (where I have a post-task questionnaire):  
Prolific ID, study and session ID, participant number and random number, along with a list of stimuli called ‘adj\_list’.

All the variables I mentioned are taken in Pavlovia as experiment information (see screenshot below), except the list of stimuli which is created in Pavlovia throughout the task.

 ![Screenshot 2020-09-15 at 17.45.48](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/7/b/7b4d77807c61a7d46e4918a59068c699a3a58c25.jpeg)

This is the completion URL I created to try and pass these info to my post-task questionnaire in Qualtrics, which is not working:

[https://bhampsychology.eu.qualtrics.com/jfe/form/SV\_bOUJhQD1hWDQhTf?PROLIFIC\_PID=“expInfo[‘PROLIFIC\_PID’]&PARTICIPANT\_ID=”+expInfo[‘participant’]&RAND\_ID="+expInfo[‘RAND\_ID’]&STUDY\_ID="+expInfo[‘STUDY\_ID’]&SESSION\_ID="+expInfo[‘SESSION\_ID’]&adj\_list="+adj\_list+](https://bhampsychology.eu.qualtrics.com/jfe/form/SV_bOUJhQD1hWDQhTf?PROLIFIC_PID=%22expInfo%5B'PROLIFIC_PID'%5D&PARTICIPANT_ID=%22+expInfo%5B'participant'%5D&RAND_ID=%22+expInfo%5B'RAND_ID'%5D&STUDY_ID=%22+expInfo%5B'STUDY_ID'%5D&SESSION_ID=%22+expInfo%5B'SESSION_ID'%5D&adj_list=%22+adj_list+)"

Once in Qualtrics, what I do is to set the variables as embedded data (see pic 1 below) and then insert them in the questionnaire as embedded data field (see examples in pic 2 and 3 below)

1

 ![Screenshot 2020-09-15 at 17.48.26](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/f/1/f13db7bad2a5b4bc8a6e87cdf2fe0f90f955ee36.png)

2

 ![Screenshot 2020-09-15 at 17.51.56](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/9/19172d35fcfbe017c7bfe8dc12f671c59f79850e.png)

3

 ![Screenshot 2020-09-15 at 17.52.09](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/8/18385d2e0fb4ec7d7708c98089499b6ce7c23e3f.png)

Any idea of where I am making mistakes? People can’t see the list of stimuli (adj\_list) in Qualtrics, and in the results spreadsheet I get ${e://Field/PROLIFIC\_PID} instead of the actual Prolific ID.

Many thanks for your help!
