Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Range

Security covered Maintenance fixes only 6,762 sites

Part of the Range ecosystem · 4 projects

This module provides a field type that allows users to store and display numeric ranges, such as an age range. It supports integer, float, and decimal ranges, with customizable options for minimum and maximum values, precision, and display formatting.

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

Video tutorials

  1. Drupal 7 Range: Set two values for a Drupal 7 field @ Code Karate
  2. Drupal modules: The One Percent — Range

Sponsorship

This module is sponsored by Lemberg Solutions.

Drupal 9–11 PHP 8

Ask your assistant about Range

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

  • field Drupal core

Required by

1 tracked project depends on this one

More in the Range ecosystem

Most installed first

All 4 →

Activity

Tracked releases
1
Tracked since
Aug 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.6 Stable 9–11 PHP 8 Aug 13, 2024