Checkbox Fields

Caldera Forms Checkbox Field Configuration

Caldera Forms Checkbox Field Configuration

Checkboxes can be used as a multi-select list, or a single toggle. The configuration panel for the checkbox is much the same as all the Select Option types: Auto-Populate, and Options, The inline flag sets the check options to be either stacked, or side by side:

Caldera Forms Checkbox Fields Inline vs Stacked Option

Auto-Populate

Select Option type fields have an option to auto-populate. These fields can be auto-populated from a data source.

Built in sources are:

  • Post-Type
    This will create an option for every post of the selected type
  • Taxonomy
    This will create an option for every term of the selected type

The auto-populate can be extended using the caldera_forms_render_get_field_type-checkbox filter.

Automatically populating a Caldera Forms dropdown with categories.
Example set to populate from categories

Options

Options are added an option at a time, or using the bulk inserter.

Bulk inserting opens a textarea. Each line is an option. Clicking insert options creates the list.

Caldera Forms Dropdown Field Bulk Options Editor
Bulk options creator

Single Checkbox Toggle

To create a single checkbox toggle (for example, a single checkbox that indicates email opt-in using a Caldera Forms email marketing processor), simply create a checkbox field with only one option. To make the single checkbox toggle pre-filled (“checked”), select the Option as the default using the radio button default as shown.

Screenshot of checkbox settings that shows the radio button for prechecked box selected.
Screenshot of checkbox settings that shows the radio button for prechecked box selected.

2 thoughts on “Checkbox Fields”