This module enhances Drupal forms and views by replacing standard select dropdowns with the interactive Select2 library. It supports various field types, including entity references, and offers features like preloaded options and custom visibility for the search box. Integration with modules like Flags and Better Exposed Filters is also provided.
Description
Provide Select2 field widgets for forms and views filters. You can turn all <select> elements on your site into using select2 boxes by default. It can also be used for entity reference fields.
Test the widgets on live demo here;
https://select2.org/getting-started/basic-usage
Fields with individual support
- Content
- User
- Authored by
- Taxonomy term
- Lists (int/float/text)
- Language
- Languagefield
- Country field
- Address field
With some extra features:
- Preloaded entity reference options before user search
- Limited visibility of search box by minimum list length
Module integrations
- Get flag icons in select list using Flags.
- Get Select2 widgets in views filter using Better Exposed Filters.
Requirements
Select2 library v. 4+
Install and configurations
Please review the README file.
Similar modules
Ask your assistant about Select2 Boxes
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.0-alpha3 | Pre-release | 9–11 | Jun 2, 2024 | ||
| 2.0.0-alpha2 | Pre-release | 9–10 | Mar 11, 2023 | ||
| 2.0.0-alpha1 | Pre-release | 9–10 | Mar 10, 2023 | ||
| 2.0.x-dev | Dev | 9–11 | Mar 10, 2023 |