How to make checkbox work with form bindings Phoenix LV?

The built in <.input type="checkbox"> is for selfstanding checkboxes (boolean on the backend), not for multi value fields. Phoenix doesn’t come with helpers for a set of checkboxes.

See Making a CheckboxGroup Input · The Phoenix Files or Scratchpad | Benjamin Milde on approaches to handling such.

2 Likes