I want to append a survey question to our standard ticket close email. I need to use our CRM to do this. I basically want to have a survey with 3 smiley faces as the first question and have these 3 faces appear on the email. If the client clicks a smiley face, then it takes them to the 2nd question of the survey (or the survey page with the first question already filled in) like what happens when I use inline questions in the email distribution in qualtrics.
Any ideas on how to do this?
Page 1 / 1
So this may not be best practice, and I don't know much about emailing from a CRM...
Could you make each of the 3 smiley faces their own unique link? Then you can embed the response value in the link and use javascript on the question to get it to select the button.
Question wording
(1) face 1
(2) face 2
(3) face 3
where the number in parentheses is the value assigned to each choice. Normally this starts at 1 and increments but if you've done a lot of editing you may find that the actual value is different - the value can be found in the survey preview using inspect element (let me know if you need more help with this).
The corresponding links would be:
LINK?Button=1
LINK?Button=2
LINK?Button=3
In your Survey Flow, the first block should be Set Embedded Data with variable Button (set from Panel or URL).
Then on your first question where you want the button selected add Javascript:
Qualtrics.SurveyEngine.addOnload(function()
{
this.setChoiceValue("${e://Field/Button}", true);
});
This will allow the answer to be preselected based on the face they click in the email.
Could you make each of the 3 smiley faces their own unique link? Then you can embed the response value in the link and use javascript on the question to get it to select the button.
Question wording
(1) face 1
(2) face 2
(3) face 3
where the number in parentheses is the value assigned to each choice. Normally this starts at 1 and increments but if you've done a lot of editing you may find that the actual value is different - the value can be found in the survey preview using inspect element (let me know if you need more help with this).
The corresponding links would be:
LINK?Button=1
LINK?Button=2
LINK?Button=3
In your Survey Flow, the first block should be Set Embedded Data with variable Button (set from Panel or URL).
Then on your first question where you want the button selected add Javascript:
Qualtrics.SurveyEngine.addOnload(function()
{
this.setChoiceValue("${e://Field/Button}", true);
});
This will allow the answer to be preselected based on the face they click in the email.
This is great - and will work - but i'm not sure where to put the javascript in. Can you help.
@rhonaf of course!
1. Go into survey editor view
2. Find your question the logic should apply to
3. Click on the wheel to the left of the question under where the number appears
4. Choose the option Add JavaScript
5. Copy the line "this.setChoiceValue("${e://Field/Button}",true)" under the first occurrence of /*Place your JavaScript here to run when the page loads*/
Here's a picture to help!
1. Go into survey editor view
2. Find your question the logic should apply to
3. Click on the wheel to the left of the question under where the number appears
4. Choose the option Add JavaScript
5. Copy the line "this.setChoiceValue("${e://Field/Button}",true)" under the first occurrence of /*Place your JavaScript here to run when the page loads*/
Here's a picture to help!
thank you so much! This is perfect.
@bstrahin
I would like to attempt your solution. Where you said "In your Survey Flow, the first block should be Set Embedded Data with variable Button (set from Panel or URL)."
What would that look like?
Would it look like this?
!
or this
!
Let me know I could be way off!
I would like to attempt your solution. Where you said "In your Survey Flow, the first block should be Set Embedded Data with variable Button (set from Panel or URL)."
What would that look like?
Would it look like this?
!
or this
!
Let me know I could be way off!
@crystal88 It would look like the attached.!
Thanks for your quick response @bstrahin ! I will give it a try and let you know how it goes 😀
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.