Skip to content

Checklist Element ​

The Checklist element allows users to select multiple options from a predefined list. Each option is typically represented by a checkbox.

In BetterForms, this is ideal for scenarios where a user can choose one or more items from a set of available choices, such as selecting multiple interests, toppings, or features.

Common Configuration Properties ​

Below are some of the most common properties used when configuring a Checklist element in BetterForms:

PropertyTypeDescription
typeStringMust be set to "checklist".
labelStringA general label for the entire checklist group.
modelStringThe key in your BetterForms data model where the array of selected values will be stored.
valuesArrayAn array of strings or objects defining the individual options in the checklist. If objects, they usually have name (display) and value (stored) properties.
listBoxBooleanIf true, displays the checklist in a style resembling a list box, often with a border. Defaults to false.
disabledBooleanIf true, all checkboxes in the list will be visible but not interactive. Defaults to false.
hintStringAdditional helper text displayed with the checklist group.
requiredBooleanIf true, the form will require at least one option to be selected. Defaults to false.
featuredBooleanCan be used by themes to apply special styling to the checklist group.
styleClassesString / ArrayCSS class(es) to apply to the checklist wrapper for custom styling.

Example Schema Snippet ​

json
{
  "type": "checklist",
  "label": "Select your interests:",
  "model": "userInterests",
  "values": [
    { "name": "Sports", "value": "sports" },
    { "name": "Music", "value": "music" },
    { "name": "Technology", "value": "tech" },
    { "name": "Travel", "value": "travel" }
  ],
  "listBox": true,
  "hint": "Choose as many as you like."
}

Klai Studio Specific Notes ​

  • The model property should map to a field in your BetterForms data model that can store an array of the selected values.
  • The values array is fundamental for defining the options available to the user.

Full Property Reference ​

This element is based on a standard form generation library. For a comprehensive list of all available properties, advanced configuration options, and the full technical specification, please refer to the Checklist Field Documentation.

Klai Studio documentation