How can I remove the thank you page at the end of the survey that says "Please wait while you are redirected" before being redirected to an external page? | XM Community
Solved

How can I remove the thank you page at the end of the survey that says "Please wait while you are redirected" before being redirected to an external page?


Badge +2

when a survey is completed, a loading page is displayed before redirecting to an external page.
My question is if this page can be removed? and be redirected directly to the external thank you page.

icon

Best answer by Shashi 4 May 2023, 07:05

View original

4 replies

Userlevel 6
Badge +27

For this, we need to create a custom end of survey message with blank text and in the script tag of the end of survey message use below JS code to redirect:

window.location.href = "REDIRECT URL GOES HERE";

 

Badge +2

Thank you!

@Shashi  isn't there a way to go directly to the external page without the need to load the default page? Because many of our partners don't like that preload page.

Userlevel 6
Badge +27

Thank you!

@Shashi  isn't there a way to go directly to the external page without the need to load the default page? Because many of our partners don't like that preload page.

We can change the default page with a custom message. Keep the custom message blank and just add the above script in the script tag.

Badge +2

Hi!

@Shashi I have a question about the code 

window.location.href = "REDIRECT URL GOES HERE";

if I have mandatory questions in the form, with this code if I press send without answering all the survey questions, the validation of mandatory questions is passed. 
Is there any condition where it says that, if the error is active, do not go to the thank you page until all the required questions are answered?

Thanks!

Leave a Reply