- Issue created by @Anybody
- 🇩🇪Germany Anybody Porta Westfalica
I tried implementing this in contrib first (Options Table module) but had to give up on this core issue: 🐛 tableselect is incompatible with #tabledrag Active
OptionsButtonsWidget
provides the
Check boxes/radio buttons
field widget.
Sadly, in contrast to EntityReferenceAutocompleteWidget
those checkboxes / radios are not sortable, while they are still stored with delta
value in the database already.
Switching to EntityReferenceAutocompleteWidget
is not an option for UX reasons often, if you want to show all available options to the user.
So currently you don't have best of both worlds combined in the UI for the user as widget:
As Drupal already provides the wonderful tableselect
FAPI element and already stores the delta in database, it should be relatively easy and benefitial to provide a "Sortable check boxes/radio buttons" widget in core.
Provide a "Sortable check boxes/radio buttons" widget in core to allow not only (bulk) checking checkboxes option but also allow sorting the values (delta) if needed.
Active
11.0 🔥
forms system
I tried implementing this in contrib first (Options Table module) but had to give up on this core issue: 🐛 tableselect is incompatible with #tabledrag Active