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).


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 [D7 only; planned for D8]
  • COMBINED value prefix and suffix [D7 only; planned for D8]
  • FROM and TO form element labels [D7 only; planned for D8]


  • Two textfields


  • Default
  • Formatted string (using sprintf()) [D7 only; planned for D8]
  • Unformatted

Formatters have the following options:

  • Range separator
  • Combine equal values into a single one
  • Thousand separator
  • Decimal separator [for decimal & float ranges]
  • Scale [for decimal & float ranges]
  • Show FROM value prefix & suffix
  • Show TO value prefix & suffix
  • Show FIELD value prefix & suffix [D7 only; planned for D8]
  • Show COMBINED value prefix & suffix [D7 only; planned for D8]

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


This module is sponsored by Lemberg Solutions.

Supporting organizations: 

Project Information