A tool for creating branching questions on a page (e.g., show Q2 if and only if Q1 = 1).

  Download

Required changes:

  • At line 10 of the footer, the branching array must be filled with objects representing the nature of the intended branching:
    • question is the question that will be shown or hidden depending on test.
    • test is the function to determine whether or not the branch is active.
    • vars is the parameter to be passed into test.
    • result is the function result that will cause question to be displayed.
    • clear defines whether question should have its responses cleared upon being hidden.

Notes:

  • Custom JavaScript verification can be used to make questions require a response if and only if shown. This code may help you get started: $('#[% QuestionName() %]_div').is(':visible').
  • Any JavaScript function can be used for test. To complement SSI_GetValue, I have created Branching_GetValueArray, Branching_GetValueNotEqual, Branching_GetValueGreaterOrEqual, and Branching_GetValueLesserOrEqual.

Community Question Library

Beginning with Lighthouse Studio 9.3, you may create a personal question library with your favorite questions. This page contains survey questions that have been submitted by our user community. You may download the questions and then import them into your Lighthouse Studio question library and freely use them within your surveys. All of the amazing items in this library are entirely user-contributed and user-supported!

Explore Question Library