XForms Module Skip Logic

This enables you create rules governing which questions are to be valid basing on answers from some other questions.

  • You start by selecting, in the Form Fields Pane, the question to be Enabled or Disabled or Shown or Hidden after a certain condition or set of conditions. Clicking the "Click here to add new condition" link enables you to add as many conditions as you want.

  • If you have more than one condition, you can combine them with "all", "any", "none", or "not all" operators.

  • You can delete a condition by selecting the "Delete Condition" item from the menu that pops up after clicking the "<>" link on the left hand side of the condition. From this same pop up menu, you can select the "Add Condition" item to add another condition.

  • When the condition action is "Enable" or "Show", you can also tick the "Make Required" check box to ensure that the user is not allowed for save the form before answering the question, when the conditions which make it shown or enabled are true.

  • For each condition, you select: the question whose values is to be tested, the operator, and value. The operator list varies according to the question data type.

  • When you click the dash to enter the value, you can tick/check the "Question value" check box to use the value of some other question instead of a fixed value. This is very use full for cross field validation. For instance when you want to ensure that the answer for height should be less than that for weight.

  • The "Click here for other questions" link is a convenience feature which enables you define skip logic for more than one question, at once, instead of having to do it separately for each question. This only makes sense if more than one question share the same skip logic.

Resources