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

Next Topic

Book Contents

Book Index

Example of using database seeding to mask the nett variable

In the course assessment survey, the iteration control variable is a single-response question listing the possible courses.

To ensure that respondents are only supplied with the option of completing a survey for a class that they have attended, you must reference a database, listing the respondents and their classes.

Screenshot of a database with email addresses

  1. Add a hidden masking question at the top of the survey.

  2. Set the properties of the iteration control question (Q1 in this case) to use this as a mask.

  3. Set up a database link, and seed the CoursesTaken variable with information from the course columns in the database. Snap automatically seeds the multiple database fields into the one multiple-response variable, and assigns each of the CoursesTaken codes individually. The graphic below shows that the values of Chemistry, English and Physics in the Course2 database column seed the corresponding codes of the CoursesTaken variable.

    Seed masking variable dialog

  4. Publish the survey.

The iteration control question will now only display the courses that a specified respondent has taken, so they can only select those options. Snap WebHost stores the information that the respondent should only be offered the survey for the displayed courses, rather than the total number of courses.

As before, on each iteration the visible choices are reduced further.