TutorialSlider Gravity Forms

Do you want to show a slider in your Gravity Form? This is the way to do it. Simply add a slider and decide how to show it: what is the maximum (in currency, or number) and minimum and which steps can they make.

Advanced Number Field

For this functionality you need to install the Advanced Number Field Add-on for Gravity Forms.

Enabling Slider

Screenshot of a number field with Show as Slider enabled.
Screenshot of a number field with Show as Slider enabled.

The Advanced Number Field add-on allows you to show a Gravity Forms Number Field as slider.

  • You can define a Minimum and Maximum Range for the Slider
  • You can define the Range Step (the intervals).
Screenshot of Advanced Range Settings with Show as Slider enabled.
Screenshot of Advanced Range Settings with Show as Slider enabled.

Showing slider value real-time

The slider has a real-time textual output, next to the slider, but it is also possible to show the output in another spot. You can paste this little snippet below in a HTML field to show a real-time number while scrolling through the range slider.

<span id="slidernumber"></span>
<script>
jQuery(document).ready(function($) {
	$(document).on('input', '#input_15_1', function() {
		$('#slidernumber').html( $(this).val() );
	});
});
<script>

Advanced Number Field

For this functionality, you need the Advanced Number Field plugin from GravityWP.

Styling the slider

We’ve created a HTML5 slider styler tool to easily create custom CSS you can use to style your own Gravity Forms slider field when you’re using Advanced Number Field.

Screenshot from the HTML5 Slider styling tool.
Screenshot from the HTML5 Slider styling tool.

Examples of styled sliders

Here a few examples of styled HTML5 sliders for Gravity Forms. Click on the image to see the configuration and copy the custom CSS code. You can also change the styling settings and save your own design.

HTML5 slider CSS rounded, light blue background, orange thumb.
Example HTML5 slider CSS rounded, light blue background, orange thumb.
HTML5 slider CSS, light green background, hard corners, black circle thumb.
Example HTML5 slider CSS, light green background, hard corners, black circle thumb.
HTML5 slider CSS without radius, light blue background, black thumb with white border.
Example HTML5 slider CSS without radius, light blue background, black thumb with white border.

Budget slider

Read our tutorial about Styling your Gravity Forms Range Slider to make it fit with your theme and branding.

Screenshot example styling the Range Slider for Gravity Forms.
Screenshot example styling the Range Slider for Gravity Forms.

Read more tutorials about GravityWP BV

GravityWP develops add-ons to collect and manage your data better.
All tutorials GravityWP BV

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close