Partial Datelist
This module lets you customize date and time input fields to show only the parts you need, like just the year or month. It simplifies forms by hiding unwanted dropdown menus for date and time selection.
The Partial Datelist module allows site administrators to customize the visibility of the Select list widget by deactivating individual parts of date and date/time components (e.g., year, month, day, hour, minute, second) both in Date and Date Range fields. This is particularly useful for scenarios where only specific parts of a date or time need to be collected (e.g. year only, or year/month).
By integrating with Drupal's widget configuration interface, this module enhances date entry flexibility by providing an intuitive way to hide unwanted dropdowns for simple date and date/time widgets, as well as range fields.
Features
- Hide specific date parts (e.g., year, month, day) or time parts (e.g., hour, minute, second) in the "Select list" widget.
- Compatible with both Datetime and Datetime Range field types.
- Easy configuration through the field widget settings interface.
- Improves user experience by simplifying date input forms.
- This module is ideal for use cases where collecting partial date or time information is sufficient, such as year-only fields for historical records.
Upgrading
Version 1.1.x drops this module's outdated procedural hook functions in favor of PHP attribute-based hook implementations (#[Hook]). For those who are upgrading form a previous version (1.0.x), make sure to run database updates (drush updb or visit update.php) right after deploying this version: until that runs, the site may still be relying on a cached reference to the removed functions, thus causing the website to error out.
Depends on
Dependencies of the latest stable release
- datetime Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.1.0 | Stable | 11 | Add support for Drupal 12; drop procedural hooks; add module schema. | Jul 25, 2026 | |
| 1.0.0 | Stable | 10–11 | This is the first stable release. | May 20, 2025 | |
| 1.0.0-beta5 | Pre-release | 10–11 | Several code adjustments for adherence with the latest best practices. | May 20, 2025 | |
| 1.0.0-beta4 | Pre-release | 10–11 | Add GitLab CI pipeline configuration | May 20, 2025 | |
| 1.0.0-beta3 | Pre-release | 10–11 | Improve the module's documentation: README, help page, licensing. | May 16, 2025 | |
| 1.0.0-beta2 | Pre-release | 10–11 | Add Functional Tests. | May 13, 2025 | |
| 1.0.0-beta1 | Pre-release | 10–11 | Initial version of the partial_datelist module. | Apr 29, 2025 |