Showing multi-lingual web pages on submit

In multi-lingual surveys, you want to provide the respondents with information in their selected language. This also includes the web page that they see after they have submitted their response.

At the start of the survey, the respondent selects the language that they prefer, which is stored in the system paradata settings. You can create a derived variable that returns a web address for the selected language. When the respondent submits their response, they will see the on submit web page in their preferred language.

Setting up the language question

If the survey is based on one of the multi-lingual survey templates supplied with Snap XMP, this automatically adds a language selection question at the start of the questionnaire. For a single language survey, adding a new language edition also automatically adds a language selection question at the start of the questionnaire.

For questionnaires that do not have a visible language question, you can change the setting in the questionnaire properties.

  1. Click Questionnaire Properties on the Questionnaire window toolbar. This opens the Questionnaire Properties dialog.
  2. In the Paradata section, select the Language system variable and select Display in survey.
  1. Click OK.
  2. This inserts a new single-response question at the top of your questionnaire.

Creating the derived variable

  1. Click Variables VariablesIcon.png on the main toolbar to open the Variables window.
  2. Click New Variable NewIcon.png to create a new variable.
  3. Set the variable properties
    • Name: LanguageOnSubmit
    • Label: On Submit Subscription web address
    • Type: Derived
    • Response: Single
    • Initial Value: ID.language
  4. In the code label add the on submit web address for each language option in the questionnaire.
  1. Repeat this for each language by changing the language in the drop-down.

Setting the On Submit web page

  1. In the Questionnaire window, click Questionnaire properties QuestionnairePropsIcon.png
  2. In Section, select Submit.
  3. In On Submit, select Web page.
  1. Enter the derived variable name, {LanguageOnSubmit}, inside curly braces into the text box. The variable name must be inside curly braces {}.
  2. Click Save SaveIcon.png to save your changes

Publishing and testing the questionnaire

  1. Click Publish to open the Publish Questionnaire dialog.
  2. In Method, select Publish with preview.
  3. Click Publish to publish the survey.
  4. In the web browser, make sure that the correct web page displays when the respondent clicks the submit button.

Alternatively you can publish in Snap XMP Online.

  1. Log in to Snap XMP Online and select your survey in Your Work.
  2. In Summary, click the Collect link.
  3. Click Publish current version to publish the survey.
  4. Click Launch preview to test the questionnaire. Make sure that the correct web page displays when the respondent clicks the submit button.
Contents