Submit a ticket My Tickets
Welcome
Login

Redirects

Redirects are useful for directing respondents to a particular webpage or back to a panel at the end of the survey.

 

To implement them we have to use the “Information” element.

 


 

 

  1. We can use the JS node to add some code that will auto submit the page.  

The example below hides the text shown in (2) and automatically clicks next to action the redirect link.  We would recommend this set up when using panels and not rely on the respondent to click next manually to finalise the survey.

                             function pageReady() {

                             $(".cRef").hide();

                             $('#btnNext').click();

                             }

  1. This is the text that will be show if you do not implement the JS in (1).
  2. You can apply a filter e.g. one redirect for completes or terminates.
  3. You must set this to “yes” so that the survey can be exited.
  4. The redirect, more details on this below.
  5. Set the status.

 

 


 

 

The redirect script:

Static links, which do not require any variation can be pasted here direct 

e.g. http://panel.link.com/static_link

 

Variable links, which can have dynamic values such as Id.

This makes use of a script that concatenates and created the url

e.g. 

script:redirect('https://welcome.walr.com/surveyout','P1',\P1.a.1,'P3','2')

this is the static part of the URL

this is a variable called P1, which has a value taken from the hidden survey question P1 (this is Walr’s Id value)

this is the status of the respondent called P3, which can have the values:

1 = complete

2 = screened

3 = quota fail

 

The script will resolve the redirect url to: https://welcome.walr.com/surveyout?P1=ID1&P3=2

Note that you can add as many variables to the url as needed in the format described above.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.