Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Overview
This module is inspired by core Number
module and inherits some of it's features. It provides numeric range field. Range field allows to save two numeric (integer, decimal or float) values (from and to), which represents some kind of range (for example: age range).
Features
Field types:
- Integer range (range_integer)
- Float range (range_float)
- Decimal range (range_decimal)
The following settings can be specified:
- Minimum and maximum values
- Precision and scale [for decimal ranges]
- Decimal separator [for decimal and float ranges]
- FROM value prefix and suffix
- TO value prefix and suffix
- FIELD value prefix and suffix
- COMBINED value prefix and suffix
Widgets:
- Two textfields
Widget options:
- FROM and TO form subelements placeholders [D8+]
- FROM and TO form subelements labels
Formatters:
- Default (using
number_format()
) - Formatted string (using
sprintf()
) - Unformatted
Formatter options:
- Range separator
- Combine equal values into a single one
- Thousand separator
- Decimal separator [for decimal & float ranges]
- Scale [for decimal & float ranges]
- Show FIELD value prefix & suffix
- Show FROM value prefix & suffix
- Show TO value prefix & suffix
- Show COMBINED value prefix & suffix
Third party modules support
- CCK Content Migrate [D7]
- Feeds [D7]
- Migrate [D7]
- Views[D7]
- Field translation [D7]
- Search API [D8+ (partial support)]
Video tutorials
- Drupal 7 Range: Set two values for a Drupal 7 field @ Code Karate
- Drupal modules: The One Percent — Range
Sponsorship
This module is sponsored by Lemberg Solutions.
Supporting organizations:
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Site Structure
- 4,854 sites report using this module
- Created by robertgarrigos on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.5
released 5 December 2022
Works with Drupal: >=8.9 <11
✓ Recommended by the project’s maintainer.
PHP8.2 support
Install:
Development version: 8.x-1.x-dev updated 18 May 2023 at 15:20 UTC
7.x-1.8
released 20 September 2021
Works with Drupal: 7.x
Development version: 7.x-1.x-dev updated 20 Sep 2021 at 11:07 UTC