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

Next Topic

Book Contents

Book Index

Setting up a Conditionally Ask Question routing rule

The Conditionally Ask Question rule is set up at the beginning of the question and is situated within the question text. Snap looks at the rule before the question is asked and the question is only asked if the conditions are met. If the conditions of the rule are not met, Snap skips this question and moves onto the next question.

If you create a condition that will not work, such as referring to a later question, Snap highlights the rule in red.

The snActivate survey contains Q4 “Please give your name and address” This question only needs to be asked to respondents who ticked “Yes” to Q3 “Would you be interested in becoming a member here?”

In order to set up this scenario, you must create a routing rule within Q4 to identify who needs to be asked this question.

  1. Click anywhere within the question you wish to set routing on (here, in Q4 “Please give your name and address”).
  2. Right-click and select Routing Rules from the menu. (You can also click Routing button on the Questionnaire window toolbar.)

  3. Click [Add] to create a new routing rule. The example below shows that no routing rules have been set up for Q4 as yet.
  4. Select Conditionally Ask Question as the Type and click [OK].

    New routing instruction dialog: conditionally ask

    The Routing Rules dialog expands and fills with information. (You can also see this by clicking [Details>>] on the Routing Rules dialog and hide it by clicking [Details<<].)

    The cursor is located in the If box.

  5. Type your routing condition. In this example, “Q3=1”. The "1" refers to code 1 of Q3, which is the first answer “yes”.
  6. Type 'If 'Yes',' in the Text box. This text can be displayed on the questionnaire
  7. Select in which publication mode, if any, you would like the routing to be displayed from the Visible drop-down list.
  8. Click [OK] to save your rule.

The rule has been set up so:

The text you created within the Routing rules dialog has been inserted within Q4 and is denoted with an arrow highlighted in blue. To edit this, double-click anywhere within the highlighted text.

WinHelp: BombIf an error has been made when compiling the routing rule, Snap will keep the rule but highlight it in red. A rule highlighted in blue denotes the condition is correct. If questions are renumbered after routing rules have been set up, Snap will automatically update the routing rule with the new question number. If a routing rule refers to a question which is subsequently deleted, then the target will be shown in red. If a rule refers to a question which has been moved and so generated an invalid sequence, then the question number will also be shown in red.

WinHelp: LightRich text formatting can be applied to the routing rules. Ensure that the Questionnaire Window is in Design Mode and that the toolbar topic is set to Font. Select the text you wish to change and use the toolbar buttons and drop-down list to change the font as required.

See Also

Setting up a "Goto on Answer" routing rule

Modifying routing within your questionnaire

Setting up a "Goto After Question" routing rule