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

Next Topic

Book Contents

Book Index

Creating a decorated patterns to automatically include characters in paper questionnaires

You can use a decorated pattern to insert fixed characters into a variable of known length. This would be used for printing dividers between date elements on a paper questionnaire, for example, before scanning.

You can only use a decorated pattern if the data pattern is of fixed length, and the fixed, printable characters always appear in the same place within the variable.

This example shows how to create a date in the format the DD/MM/YYYY. The respondent must enter two day characters, two month characters and four year characters. The slashes will be pre-written into the boxes.

  1. Select Tailor | Patterns to open the Patterns dialog.

  2. Select [New...] in the Patterns dialog to display the Pattern Properties dialog.
  3. Type a name in the Name box. For example dec_ DD/MM/YYYY so that its format can be identified easily by others using it.
    • Enter a Label giving more information. This will be displayed when the pattern is selected on the front page of the Patterns dialog.
  4. Select the response type that the pattern will be used with from the Usage drop-down list (e.g. Date and Literal Variables).
  5. Check the Decorated box.

    Patterns window

  6. Click the [New] button to specify what the pattern consists of.
  7. The Match Pattern dialog displays.
  8. Scroll to digit in the Global Patterns list on the right and double-click it to add it to the Match definition.
  9. Double-click digit again, to give two digits for the day and then type /.
    Patterns window
  10. Add two digits and a / for the month and then add four digits for the year.
  11. Click [OK] to save the match.

    Patterns window

    The match is added to the pattern definition.

  12. Click [OK] to save the pattern.
  13. Click [Close] to close the Patterns dialog.

See Also

Using the decorated pattern in a scannable response box