Pre-populate mulitple choice response from email invite? | XM Community
Skip to main content

Hello all, our marketing team would like to implement a pre-populate response when our client clicks on our email regarding Qualtrics survey.

For example, if the client clicks on the link number 6 on our email that we sent out, they will be taken to the survey page where box 6 will be already selected on their behalf as shown below

We have tried to setup via embedded data but we are not sure how exactly how the link itself, should be structured such as surverylink?response={${q://QID52/ChoiceDescription/1}

Addiontally, we would like to ask if Javascript code is needed to implement this?

Any tips would be much appreciated.

 

You have to include Q_PopulateResponse as a url query parameter in your survey link.  The value would be something like: {"QID1":"6"} for choice 6, but you should url encode it in your html link.


Hello TomG,

 

Thank you for your reply.

 

We were able to get pre-populate mulitple choice response to work if we use this anonymous suervey link pasted on URL web browser

https://qualtricsxmgbgq5fsl5.qualtrics.com/jfe/form/SV_bmD3Wkz1WlQHThk?Q_PopulateResponse={%22QID52%22:%223%22}

However if we use this html code for distibution email

<a href="${l://SurveyURL}?Q_PopulateResponse={%22QID52%22:%223%22}">3</a>

It will output URL to this one listed below which does not pre-populate mulitple choice response

https://qualtricsxmgbgq5fsl5.qualtrics.com/jfe/form/SV_bmD3Wkz1WlQHThk?Q_DL=gEOl53B5e6qiN8K_bmD3Wkz1WlQHThk_CGC_81oKKGybkunlzV1&Q_CHL=email?Q_PopulateResponse={%22QID52%22:%223%22}

We believe it somthing to do with extra email code added in the URL that is preventing Q_PopulateResponse code from working when the client clicks on number 3 link from the distibution email.

 

Addiontally, we have also added 10 copies of Q_PopulateResponse from ${q://QID52/ChoiceDescription/1} to ${q://QID52/ChoiceDescription/10} in survey flow to make pre-populate code work


@Maxiron Marketing,

Because the survey url in your distribution already includes other parameters, you need to append the Q_PopulateResponse parameter with a & instead of a ?:

<a href="${l://SurveyURL}&Q_PopulateResponse={%22QID52%22:%223%22}">3</a>

will result in:

https://qualtricsxmgbgq5fsl5.qualtrics.com/jfe/form/SV_bmD3Wkz1WlQHThk?Q_DL=gEOl53B5e6qiN8K_bmD3Wkz1WlQHThk_CGC_81oKKGybkunlzV1&Q_CHL=email&Q_PopulateResponse={%22QID52%22:%223%22}

which should work correctly.


Hello @TomG 

Thank you for your reply,

 

We have copy the href code you have provided in your pervious post for new email survey which results in this “message” box when your view email campagin on Qualtrics website

<a href="${l://SurveyURL}&amp;Q_PopulateResponse={%22QID52%22:%223%22}">3</a>
<a href="${l://SurveyURL}&amp;Q_PopulateResponse={%22QID52%22:%224%22}">4</a>
<a href="${l://SurveyURL}&amp;Q_PopulateResponse={%22QID52%22:%228%22}">8</a>

If we were to link on the numbers on email we sent, it would lead us to these links below but

unfortunately, the pre-populate mulitple choice response still does not appear to work.

https://qualtricsxmgbgq5fsl5.qualtrics.com/jfe/form/SV_bmD3Wkz1WlQHThk?Q_DL=4itrYUQeJRRhXu8_bmD3Wkz1WlQHThk_CGC_92Byq6ELZztuOYo&Q_CHL=email&Q_PopulateResponse={%22QID52%22:%223%22}

https://qualtricsxmgbgq5fsl5.qualtrics.com/jfe/form/SV_bmD3Wkz1WlQHThk?Q_DL=4itrYUQeJRRhXu8_bmD3Wkz1WlQHThk_CGC_92Byq6ELZztuOYo&Q_CHL=email&Q_PopulateResponse={%22QID52%22:%224%22}

https://qualtricsxmgbgq5fsl5.qualtrics.com/jfe/form/SV_bmD3Wkz1WlQHThk?Q_DL=4itrYUQeJRRhXu8_bmD3Wkz1WlQHThk_CGC_92Byq6ELZztuOYo&Q_CHL=email&Q_PopulateResponse={%22QID52%22:%228%22}

We were wondering if using SurveyURL, will support using Q_PopulateResponse code?


@Maxiron Marketing,

 

Try piping the links like this:

href="${l://ChoiceLink/QID5/3}"

 


Hello @TomG,

I have tried your new link on a new email distribution and the link has output to this listed below.

https://qualtricsxmgbgq5fsl5.qualtrics.com/jfe/form/SV_bmD3Wkz1WlQHThk?Q_DL=j6hX4qsKdZysFW0_bmD3Wkz1WlQHThk_CGC_c7RPKkCFA9ga6Nj&Q_CHL=email&Q_PopulateResponse=%7B%22QID5%22:%223%22%7D&Q_PopulateValidate=1

Unfortunately, the pre-populate mulitple choice response still does not appear to work as in the 3rd choice does not get highlighted automatically.


Just following up on this topic, it appears that the Q_PopulateResponse does work with SurveyURL but in different way compared to using an anonymous survey link.

 

We used this code for link button 1 for the table inside the email.

<p align="center" class="MsoNormal" style="text-align:center"><b><span style="font-family:&quot;Helvetica&quot;,sans-serif;color:#434447"><a href="${l://SurveyURL}&Q_PopulateResponse={&quot;QID52&quot;:&quot;1&quot;}" qid52="" style="height: 100%;display: block; width: 100%;"><span style="color:#434447;text-decoration:none;text-underline:none">1</span></a></span></b></p>

 

On a brand new distribution email, the first link that the recipient clicks on will be the default pre-populate number choice they will be selected. 

 

For example, if the recipient clicks on button 8 in the email first but goes back to the email to click on button 4, the pre-populate number choice will be number 8 based on their first button their have clicked on.

 

Apologies for any confusion made and thank you for the suggestions.


Leave a Reply