Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When creating a filter on a view (in my case for an integer field -- not sure where else this would apply) that is exposed, grouped, and set to allow multiple selections, the widget selector for 'radio' vs 'select' doesn't make a difference. If there are 4 or less options defined, the filter defaults to checkboxes; more than 4 options, and the filter defaults to a select list.
I'd imagine expected behavior is that this would change based on the selected widget type.
Comments
Comment #2
mrweiner CreditAttribution: mrweiner as a volunteer commentedFor anybody coming across this who needs the checkbox functionality when only the select list is present, there's appears to be a handful of jquery scripts out there to handle conversion. Multicheck is working for me at the moment.
Comment #3
LendudeBit of a split between a bug and a feature really.
But I never liked the hardcoded limit of 4, so taking that out and giving control to the widget selector would take some of the magical 'what just happened??' out of this.
If we do this, we would need an upgrade path for existing Views to make them default to the current behaviour.
Comment #4
mrweiner CreditAttribution: mrweiner as a volunteer commentedYeah it's does feel between a feature and a bug. I think the reason it feels like a bug is because the widget selector is available but not functional. If the widget weren't present, I don't think it would feel as buggy to me. Even just adding an explanation for the "magical" part of this and hiding the widget selector if "allow multiple selections" is selected would make it feel more like intended functionality.
Giving full control (as a feature request) would certainly be preferable overall. I'd be open to helping with this, but have no idea where to start. Never worked on something like this before.
Comment #6
kevin.dutra CreditAttribution: kevin.dutra at Workday, Inc. commentedComment #8
pameeela CreditAttribution: pameeela commentedClosed #2809167: Widget type Select in the filters group will not work as a duplicate so transferred credit here.
Comment #9
pameeela CreditAttribution: pameeela commentedWhoops, added to the wrong duplicate!