Need to pass data to redirect URL | XM Community
Skip to main content
Solved

Need to pass data to redirect URL

  • May 16, 2022
  • 3 replies
  • 710 views

bjkitchin
Forum|alt.badge.img+1

Hi all,
I'm a bit confused by the articles I've read on passing the value of a question to the redirect URL.
I have a question QID62 (for example) that is a text question asking the respondent for the email address. I'd like to pass that value to the end of my redirect link. Like so:
myurl?aeuid=theiremail@theiremail.com
This is likely very easy once you know how.
Thank you for the generosity of your time.
BJ

Best answer by bjkitchin

Thank you! This worked. I also got it to work with the following method:
https://URL?email=${q://QID62/ChoiceTextEntryValue}

3 replies

MattiasM
Level 5 ●●●●●
Forum|alt.badge.img+63
  • Level 5 ●●●●●
  • 328 replies
  • May 17, 2022

Hi there
I believe you need to specify the response field as an Embedded data.
So in the Survey Flow you set a new Embedded data called "Email" and you set that equal to "${e://Field/QID62}" (as per your example above).
Then you set the redirect link the same way, so "myurl?Email=${e://Field/QID62}"

Hope that helps
-Mattias


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6082 replies
  • May 17, 2022

bjkitchin,
You can do it like this:
myurl?aeuid=${q://QID62/ChoiceTextEntryValue}


bjkitchin
Forum|alt.badge.img+1
  • Author
  • 1 reply
  • Answer
  • May 17, 2022

Thank you! This worked. I also got it to work with the following method:
https://URL?email=${q://QID62/ChoiceTextEntryValue}