Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

range_slider

992 sites Security covered
View on drupal.org

Range Slider adds a themed, accessible range control to Drupal by integrating the range-slider-element web component. It can be used in custom forms, as a field widget on numeric fields, and (when Webform is present) as a Webform element.

Form API

Use the range_slider form element. It extends Drupal core's Range element, so standard properties such as #min, #max, #step, and #default_value apply.

$form['quantity'] = [
  '#type' => 'range_slider',
  '#title' => $this->t('Quantity'),
  '#min' => 0,
  '#max' => 100,
  '#step' => 5,
  '#orientation' => 'vertical',
  '#dir' => 'rtl',
  '#output' => 'below',
  '#output__field_prefix' => '$',
  '#output__field_suffix' => 'USD',
  '#output__layout_flex' => TRUE,
];

See \Drupal\range_slider\Element\RangeSlider and
\Drupal\Core\Render\Element\Range in code for the full property list.

Field widget

For Integer, Decimal, or Float fields, choose the Range Slider widget when configuring the form display. Widget settings allow orientation, direction, and optional output placement (e.g. below or above the thumb).

Webform

With Webform enabled, add an element of type Range Slider (range_slider). Behavior matches Webform’s range element, with the range-slider-element UI and styling provided by this module.

Version compatibility

8.x-1.x / 2.x 3.x Drupal core
  • 8.x-1.x: Drupal 8 and 9
  • 2.x: ≥ 9.2 only
≥ 9.2 Slider library rangeslider.js (jQuery plugin) range-slider-element
(no jQuery) Drupal JS APIs
  • jQuery on 8.x-1.x
  • once on 2.x
once

Use 3.x for new projects on Drupal 9.2+ unless you must stay on the legacy jQuery rangeslider.js stack.

range-slider-element (3.x)

v3.0.0

Important: Please see #3516294: [META] 3.0.0 Plan for details

Read more about the range-slider-element project:

range-slider-element



rangeslider.js (8.x-1.x / 2.x)

Read more about the rangeslider.js project:

rangeslider.js


🇵🇸

Please support Palestine in a fight for their freedom and daily struggle to survive.

Activity

Total releases
9
First release
Dec 2024
Latest release
2 weeks ago
Release cadence
60 days
Stability
22% stable

Release Timeline

Releases

Version Type Release date
3.0.0-rc3 Pre-release Mar 29, 2026
3.0.0-rc2 Pre-release Mar 29, 2026
3.0.0-rc1 Pre-release Mar 26, 2026
3.0.0-alpha2 Pre-release Sep 22, 2025
2.1.1 Stable Sep 21, 2025
3.0.0-alpha1 Pre-release Sep 20, 2025
3.x-dev Dev Mar 30, 2025
2.1.0 Stable Dec 6, 2024
2.x-dev Dev Dec 5, 2024