Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Provides https://rangeslider.js.org/ integration with a Field Widget, Form API and Webform.
GitHub mirror: https://github.com/drupal-modules/range_slider
Form API example
$form['example'] = [
'#type' => 'range_slider',
'#title' => 'Rangeslider element',
'#min' => 5,
'#max' => 30,
'#step' => 2,
'#default_value' => 12,
'#description' => 'Example range slider form element.',
'#data-orientation' => 'horizontal',
'#output' => 'below',
'#output__field_prefix' => '$',
'#output__field_suffix' => 'USD',
];
Field widget example
Webform example
🇺🇦 |
Please consider supporting Ukraine in a fight for their freedom and the safety of Europe. |
Read more about the rangeslider.js project:
Supporting organizations:
Development and maintenance
Project information
- Module categories: Integrations
- 884 sites report using this module
- Created by baikho on , updated
- Drupal 10 is here!
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.