Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Range

Security covered
View on drupal.org

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.

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

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

Releases

Version Type Core Release date
8.x-1.6 Stable Aug 13, 2024