Redirect after thank you message | XM Community
Skip to main content
Question

Redirect after thank you message

  • May 14, 2024
  • 3 replies
  • 56 views

Forum|alt.badge.img+1

How can I show a thank you message after survey and after 1,5 second redirect to a java script (url)???

3 replies

RickB
Level 4 ●●●●
Forum|alt.badge.img+22
  • Level 4 ●●●●
  • 128 replies
  • May 15, 2024

 

Hey @sofita you can try this:

In your last block/question where you say: thank you. You can add javascript

Enter this code:
Qualtrics.SurveyEngine.addOnload(function() {

    setTimeout(function() {

        window.location.href = "YOUR_URL_HERE";

    }, 1500); // 1500 milliseconds = 1.5 seconds

});

Change YOUR_URL_HERE to your own URL.

Test it by sending your survey to yourself.
The perview didn't work for me, but the real survey did.

 I hope it will work for you


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • May 15, 2024

@sofita - The script @RickB provided needs to be added to the end of survey message inside a <script> tag. If you put it in a survey question, the survey response won’t be recorded.


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • May 16, 2024

I´ll try! thank you!!