3.2. Setting up a pattern for scanning a code

This section describes how to create a pattern to use for scanning validation for Q5 “What is your room number?”. You can tell Snap that the response will consist of two letters and three numbers and a possible separator, such as a space or point. Snap then knows that a hand-written character that could either be a 2 or a Z will be read as a Z in the first part and a two in the second part.

  1. Select Tailor|Patterns to open the Patterns window which lists all existing patterns.
  2. Click [New...] to create a new pattern for the room number. This opens the Pattern Properties dialog.


  3. Type "room number" in the Name box.
  4. Enter a Label giving more information. This will be displayed when the pattern is selected on the front page of the Patterns dialog.
  5. Leave the response type as Literal variables in the Usage drop-down list.
  6. Click [New] at the bottom to define your pattern.

The pattern that you wish to match is two letters and three digits. If you are sure that everyone will enter it correctly, you can set that up as the requirement.

  1. Double-click letter in the right-hand pane. The word {letter} appears in the Match field

  2. Click [Repeat] to open the Repeat dialog.
  3. Select Exactly and enter 2 then click [OK].

  4. Double-click digit in the right-hand pane and set the repeat to be exactly 3.
  5. Click [OK] twice to return to the Pattern Properties dialog.
  6. Click [OK] again. Your new pattern appears in the list of available patterns. Click [Close].
  7. Confirm the Questionnaire window for your survey is open.
  8. Highlight the question “What is your room number?” in the Questionnaire window.
  9. Click on Properties button in the Questionnaire window toolbar to display the Variable Properties dialog.
  10. Scroll to display Source Pattern and change it to your new pattern.
  11. Select Pattern as the form of Scanning Validation for the scanner to check its readings based on your new pattern.

    VP: scanning validation set to pattern

Other steps

3.1.Apply patterns and settings

3.3. Key an open question instead of scanning it

3.4. Identifying a recommendation