Custom CBC

Zachary Anderson
Last updated: 27 Apr 2022
Written for: Lighthouse Studio 9.4

Description

A free format CBC question, with easily modified settings for response type, attribute count, concept count, dual none, etc.

Users comfortable in Perl can modify this script to easily build their free format CBCs. Others more comfortable in HTML can set the script to print out the generated HTML for easier modification.

Instructions

  • Please see "Instructions" in the question's HTML for information about using this tool.
  • Line 36 must be updated with the name of the CBC exercise.\
  • Line 37 must be updated with the number of tasks.
  • Line 38 must be updated with the number of concepts per task.
  • Line 39 must be updated with the positions of fixed tasks, if any. For example, (4, 8).
  • Line 42 must be updated with the response type.
  • Line 43 must be updated with whether the task should require a response.
  • Line 45 can be updated with the button label used for discrete choice tasks.
  • Lines 47-48 can be updated with the button labels used for best-worst tasks.
  • Line 50 can be updated with the total to require for constant sum tasks.
  • Lines 51-54 can be updated with labels to use for constant sum tasks.
  • Line 57 must be updated with what none option should be used, if any.
  • Line 58 can be updated with whether the dual-response none should require a response.
  • Line 60 can be updated with the position of the traditional none concept.
  • Line 61 can be updated with the text for the traditional none concept.
  • Line 63 can be updated with the text for the dual-response none.
  • Lines 64-65 can be updated with the button labels used for dual-response none.
  • Line 68 must be updated with how the task should be displayed for mobile respondents.
  • Line 69 must be updated with where attribute labels should be shown, if anywhere.
  • Line 70 can be updated with concept labels. For example, ('Choice 1', 'Choice 2', 'Choice 3').
  • Lines 73-77 can be updated with error messages.
  • Line 80 must be updated with the loop name if this question is to be placed in a loop.

Options

  • Line 83 can be set to make the question print out the generated HTML, CSS, and JS into a textbox. From here, the code can be copied, modified, and used in place of this question's built-in HTML.