Example of setting up a scanning validation pattern for a name

It is useful to apply a pattern when you know the format of the response: for example, a name, postcode, telephone number, zip code etc.

The pattern tells Snap what characters to expect in a response. For a name response, it could be groups of letters separated by spaces or hyphens. Snap then knows that a hand-written character that could either be a 2 or a Z will be read as a Z.

  1. Select Tailor|Patterns to open the Patterns window which lists all existing patterns. This opens the Patterns dialog which lists all existing patterns. You can create a new pattern, select an existing pattern or edit an existing pattern.

Click [New...] to create one. This opens the Pattern Properties dialog.

  1. Enter a name for your pattern in the Name box.
  2. Enter a Label giving more information. This will be displayed when the pattern is selected on the front page of the Patterns dialog.
  3. Leave the response type as Literal variables in the Usage drop-down list.

  4. Click [New] to open the Match Pattern dialog to define your pattern to be matched.

  5. Click [Characters] to open the character selection dialog.
  6. Click on A, hold down [Shft] and then click on Z. Hold down [Ctrl] and click on the hyphen character then the space character.

  7. When you are happy with your selection, click [OK].
  8. Select the text in the Match field and click Repeat to open the Repeat dialog.

  9. Set the repetitions to be 1 or more and click [OK].

  10. Click [OK] to close the Match Pattern dialog.
  11. Click [OK] to close the Pattern Properties dialog. Your new pattern is listed on the right hand side. Select [Close] to close the list of patterns.
  12. Select the question that you wish to apply a pattern to in the Questionnaire window.
  13. Click Properties button in the Questionnaire window toolbar to display the Variable Properties dialog.
  14. Scroll to display Source Pattern and change it to your new pattern.
  15. Select Pattern as the form of Scanning Validation for the scanner to check its readings based on your new pattern.

(A further example of creating a pattern is given in Creating a new pattern example. This shows you how to create re-usable components)

Other steps

Choose tick boxes rather than open-ended questions

Scanning literal response questions

Scanning quantity questions

Setting up date questions for scanning

Setting up time questions for scanning

Setting up open-ended questions for scanning