Description
If you want to add a form field to select multiple fields, Backpex provides Backpex.Fields.MultiSelect
. As this field comes with a dropdown and search functionality, it might not be suitable for simple multi select use cases (e.g., if you only have a few options).
A Backpex.Fields.CheckboxGroup
could be a good addition. It renders a list of checkboxes and makes it easy to select multiple values.
Resources
There is a good article from fly.io that explains how to build a check_group
component: https://fly.io/phoenix-files/making-a-checkboxgroup-input/