Better Lighthouse Library

Zachary Anderson
Last updated: 16 Jul 2021
Written for: Lighthouse Studio 9.3

Description

Adds the following functions and events:

  • Event lighthouseResponseChanged that fires when a response changes.
  • Events lighthouseRadioButtonChanged and lighthouseCheckboxChanged that fire when graphical or non-graphical radio buttons or checkboxes change state.
  • Functions SSI_EnableRadioButtonOrCheckbox , SSI_DisableRadioButtonOrCheckbox, and SSI_ToggleRadioButtonOrCheckbox for enabling and disabling graphical and non-graphical radio buttons and checkboxes.
  • Functions SSI_GetQuestionList, SSI_GetGridRowList, and SSI_GetGridColumnList for getting list items of questions.
  • Function SSI_GetStudySettings for getting key study settings.
  • Function SSI_GetGridQuestionSettings for getting key settings of a grid question.
  • Function SSI_GetFreeFormatQuestionSettings for getting key settings of a free format question.
  • Function SSI_GetAcbcByoQuestionSettings for getting key settings of an ACBC BYO question.

Instructions

  • Moving the code from this question's footer into your questionnaire's HTML tag will make these changes apply globally.
  • Any existing uses of SSI_CustomGraphicalRadiobox or SSI_CustomGraphicalCheckbox on this page must be refactored to use these events.

Options

  • Any of the primary features can be left off or modified. Doing so may result in behavioral changes with JavaScript on the page meant to interact with this library, including other items of the Community Question Library. Discretion is advised.