How can I find the full survey link to embed a question in an external email application?

How can I find the full survey link to embed a question in an external email application?

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?

Best Answers

  • bstrahinbstrahin Madison, WI Superuser ✭✭✭✭
    Accepted Answer

    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.

  • bstrahinbstrahin Madison, WI Superuser ✭✭✭✭
    Accepted Answer

    @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

Answers

  • rhonafrhonaf New York Qubie ✭

    This is great - and will work - but i'm not sure where to put the javascript in. Can you help.

  • rhonafrhonaf New York Qubie ✭

    thank you so much! This is perfect.

Sign In to Comment