This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Creating and applying a conditional mask using a derived variable

You can create a dynamic mask where the possible responses displayed depend upon your answers to previous questions.

The example below explains how to define a derived variable that is used to mask departments, depending which office someone works in. It assumes that you have a survey where Q1 asks which office someone works in and Q2 asks which department they work in.

Q1 is assumed to have three codes:

Code

Value

1

London

2

New York

3

Paris

The mask variable will be a multi-choice variable with the same number of codes as the variable (Q2) that it is masking.

Creating the mask

  1. Click Variables window button to open the Variables window.
  2. Select the variable to which you wish to provide a mask for.
  3. Click Clone button to clone the variable.
  4. The new variable will open. It will have the same codes as the variable it is based on. Change the Type to Derived.
  5. Change the name of the variable to make it clear that it is a mask variable, (e.g. DepartmentMask) and change the Label to explain what you are going to use it for.
  6. Change the Response to Multiple.

    Set up the code Values. For example, if they have selected the code for London in Q1, only the Customer services and Training departments are visible.

  7. Click Save button to save the changes.

Applying the mask

  1. Select the question to mask in the Questionnaire window.
  2. Right-click and select Variable Properties from the menu to display the Variable Properties dialog.
  3. Enter the mask variable you have created in the Mask field.

  4. Click [OK] to save your settings.

    You can check your mask by previewing the survey.

See Also

Applying a static mask

Routing through different versions of your survey using the ID.site paradata

Applying dynamic masking