Checkbox group JSON Form

Select multiple typed enum values into a unique array.

How this example works

Add "x-widget": "checkbox-group" to an array with uniqueItems: true and a primitive enum item schema. Choose one or two options in each group. Submit to see string, number, and boolean arrays; selection limits are validated on submit. Reset restores the default selections. Topics demonstrates a horizontal layout and Ratios an explicit vertical layout. Set x-widget-options.orientation to horizontal or vertical; omitted orientation defaults to vertical. Horizontal options wrap on narrow screens.

Read the supported schema guide

Multiple choices

Topics

Choose one or two topics. Horizontal layout; options wrap on narrow screens.

Ratios

Vertical layout; options are stacked.

Flags

Submitted JSON

Submit the form to see its JSON.