passing URLS with appended query strings for a two wave survey | XM Community
Question

passing URLS with appended query strings for a two wave survey

  • 20 May 2020
  • 6 replies
  • 110 views

Hi, we have two waves of our survey, so it is a longitudinal design.
In wave 1 survey, I have created a random ID to identify each participant called RandomID (no spaces in name so URL should be happy)
Then I use email trigger (that is sent once survey is completed) to pass the URL link for wave 2 to the respondents.
I have set up the variable RandomID in wave2 survey as an emebdded variable to be imported form the URL at the top of wave 2 survey before block 1 begins
I copied the URL from wave 2 (using Distributions/anonymous survey link which I then pasted into survey wave 1 email trigger email
I am using the following phrase in the email trigger email
>The anonymous link is https://researchsurveys.deakin.edu.au/jfe/form/SV_5vjajdE70IYOyhf?Wave=wave1&RandomID=${e://Field/RandomID?format=urlencode}
However I cant get the URL passing to pass the RandomID value. The text description box in survey wave2 where I pipe the embedded variable RandomID into just shows a blank.
I had to go into the html to get this to work because just copying and pasting the anonymous survey link from wave 2 into the email trigger adds extra formatting. So the html now looks like this below.
The anonymous link is https://researchsurveys.deakin.edu.au/jfe/form/SV_5vjajdE70IYOyhf" style="box-sizing: border-box; color: rgb(0, 122, 192); cursor: pointer; font-family: "72","helvetica neue",helvetica,arial,sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: medium; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_blank">https://researchsurveys.deakin.edu.au/jfe/form/SV_5vjajdE70IYOyhf?Wave=wave1&RandomID=${e://Field/RandomID?format=urlencode}  />
Can you please tell me why it is not working?
Could it be due to the html code?   Or could it be due to permission levels? Does one have to have a certain permission level to pass variables between surveys? I am singed in via my university which has an institution account and so should have the permissions, set for passing, right?
PS Can you pls put some info about 1. no spaces in variable names, 2. formatting html of the URL and 3. permission levels
into the Qualtrics help pages for Passing Information via Query Strings
many thanks, jem


6 replies

Userlevel 6
Badge +21

Hi JMcC ,
In your anonymous link, please format the query string for RandomID as below.
And on next point placing your links in email body trying using source(<>) option in rich content editor.
https://researchsurveys.deakin.edu.au/jfe/form/SV_5vjajdE70IYOyhf" target="_blank"> Survey Link

Hi PraDeepKotian
thak yo for trying to help me.
i have tried what you have suggested many times. Then also tried it with ?format=URLencode added onto the end of the querystring as well. Neither works.
The URL srting is successfully sent from wave 1 but not received in wave 2
Using your suggestinos above, the email trigger sends this message at the completion of wave1, but then RandomID is not captured in wave2
>Please click on the link below to complete the PBOS survey Part II
The anonymous link is https://researchsurveys.deakin.edu.au/jfe/form/SV_5vjajdE70IYOyhf?Wave=wave1&RandomID=29942 

Wave2 survey, in survey flow, at the top, has an embedded data set as
RandomID Value will be set from Panel or URL.
but it is not captured in Wave 2

Userlevel 6
Badge +21

Hi JMcC
Could you please do the following check in both the survey:
-check the value of RandomID  is captured properly in first survey
-try hitting the second survey link by directly addeing the embedded data in url and pipe in the first question just to check it is getting the values from the URL
Alternative solution for this is to use Actions -> Email task and also the email trigger is going to be deprecated soon.

Hi PraDeepKotian I have tried al of these and it doe s not work. That is, the second wave survey canot pipe the randomID variable (passes via the URL) into a text phrase. I just get blank when I try to pipe it.
I am wondering if it doesnot work with anonymous links and we can only appned query strings to personal; links?

Userlevel 6
Badge +21

Hi JMcC,

Passing query string do work with anonymous links.
Qualtrics Support page

Thank you PraDeepKotian
I have taken some screen shots and sent them. Thank you for trying t help me
J mcC

Leave a Reply