This module adds an enhanced select dropdown field to Bootstrap-themed Drupal sites. It allows for features like live search, placeholders, and custom selected text formats.
3rd party js selectpicker bootstrap-select form widget for Bootstrap themed sites. Library will be loaded by default via CDN.
But the module will check if you have a local copy in web/libraries/bootstrap-select and use it instead.
This module implements the js package bootstrap-select a jQuery plugin for bootstrap sites. The widget is suitable for most option fields like (list_integer, list_float, list_string, entity_reference)
Implemented Options
- Live search
- Actions box
- Placeholder
- Header
- Selected text format
If you need another option just add a feature request.
Dependencies:
Bootstrap v4's requirements
I want to use my local bootstrap-select files
You can download the library manually via Github or use asset packagist https://asset-packagist.org/ in your composer.json
Add the following to your project composer.json in the "repositories" section.
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
Make sure you have required the oomphinc/composer-installers-extender package.
Add the following to your project composer.json in the "extra" section.
"installer-types": [
"bower-asset",
"npm-asset"
],
"installer-paths": {
"web/libraries/{$name}": ["type:drupal-library", "type:npm-asset"],
}Now you can composer require npm-asset/bootstrap-select
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
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.4 | Stable | 8–11 | D11 release | Jun 16, 2025 |