Decode and prefill a question from Q_EED query string | XM Community
Skip to main content
Solved

Decode and prefill a question from Q_EED query string


Forum|alt.badge.img+2

I need to encode values into an url using Q_EED query string, and then prefill questions based on the value of each item.

original values

{'prenom':David,'province':Ontario,'code':y4h3vwer}

final url using q_eed with base64 encoding values

https://qfreeaccountssjc1.az1.qualtrics.com/jfe/form/SV_8dFaixQLtQvpWVE?Q_EED=eydwcmVub20nOkRhdmlkLCdwcm92aW5jZSc6T250YXJpbywnY29kZSc6eTRoM3Z3ZXJ9

 

I have an Embedded Data Element in my survey’s flow for each of the following parameters :

  • prenom
  • province
  • code

When using basic non encoeded url parameters, I can define each question with a default value using a pipe text form a Embedded Data filed, which looks like this :

${e://Field/prenom}

https://qfreeaccountssjc1.az1.qualtrics.com/jfe/form/SV_8dFaixQLtQvpWVE?prenom=David 

 

 

If I want to prefill the decoded “prenom” item from the Q_EED query string, how can I manage this ?

Best answer by TomG

Your original string isn’t correct.  The string values need to be quoted and use double quotes:

{"prenom":"David","province":"Ontario","code":"y4h3vwer"}

Then:

Q_EED=eyJwcmVub20iOiJEYXZpZCIsInByb3ZpbmNlIjoiT250YXJpbyIsImNvZGUiOiJ5NGgzdndlciJ9

View original

3 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5938 replies
  • Answer
  • August 1, 2023

Your original string isn’t correct.  The string values need to be quoted and use double quotes:

{"prenom":"David","province":"Ontario","code":"y4h3vwer"}

Then:

Q_EED=eyJwcmVub20iOiJEYXZpZCIsInByb3ZpbmNlIjoiT250YXJpbyIsImNvZGUiOiJ5NGgzdndlciJ9


Forum|alt.badge.img+2
TomG wrote:

Your original string isn’t correct.  The string values need to be quoted and use double quotes:

{"prenom":"David","province":"Ontario","code":"y4h3vwer"}

Then:

Q_EED=eyJwcmVub20iOiJEYXZpZCIsInByb3ZpbmNlIjoiT250YXJpbyIsImNvZGUiOiJ5NGgzdndlciJ9

Thank you for your answer, the problem was the double missing quotes


Forum|alt.badge.img+8
  • Level 2 ●●
  • 23 replies
  • August 11, 2023

Does anyone know if Q_EED functionality can be used with the Survey Director?  It seems like it isn’t based on my testing but I would love other’s thoughts on it if that have found success. 

I have successfully been able to pass regular embedded data with Survey Director. 

Thanks!

Adam