How to Min/Max Range for Number Fields in WPForms

by | Last updated Mar 11, 2025 | Booster for WpForms, wpforms | 0 comments

Setting a minimum or maximum range for numbers field can be helpful in a lot of cases. Like, have a job application form where the age limit is one of the criteria. So, adding that limit on the form itself will reduce the number of submissions from uneligible candidates having age more or less than the required criteria.

WPForms doesn’t have any range limiting setting in its numbers fields. There are two ways by which you can enable min/max limit on number fields as follows

  • Using free Booster for WPForms plugin
  • Adding Custom code to functions.php

Steps to add Range Limit using Booster for WPForms

  • Install and activate Booster for WPForms from the official WordPress plugin repository. It is a free plugin and you can also directly install it from your WordPress dashboard by searching for it under ‘Plugins -> Add New’.
  • Now go to WPForms -> Settings -> Booster and check the ‘Min, Max range for Numbers’ setting.
    How to Min/Max Range for Number Fields in WPForms

    Enable Min/max Settings

    set min, max range

    set min, max range

  • Open you form editor and click on any number’s field. Under ‘Advanced tab’ you will now have the option to enter the minimum and maximum number for that field.
  • Now whenever someone will enter a number that is outside of the range then an error message will be shown with instructions about the range limit.
  • With Booster for WPForms, you can add a whole lot of other features to your form. You can mark fields as read only or change validation messages for the form etc.

How to add Range Limit to Number Fields using Javascript code

  • This process requires you to add some javascript code in your functions.php file as well as setting up a class for each field for which you want to limit the range.
  • Copy and paste the below code in your functions.php file.
  • Once you have added the code then add bfwpf-number-range-limit under Advanced Options -> CSS Classes of number field in which you want to apply the limit.
  • You can change the limit for min and max values in the code above as per your requirement.
  • Let us know in the comments section below about which method you used and if you had any issues with it.
Still stuck? Need custom solution? We can help
Ultimate Kit for WPForms

Fantastic for forms

I am new to WP and this was an easy to use plug-in to make a form I needed for my new site. Really easy to understand. When I hit a snag (mainly because I am still learning) the customer service was quick and kind to walk me through things. Looking forward to creating more.

Brilliant plugin

I am new to website building and this plugin is my favourite. It is so easy to use and looks beautiful

A must have for WP Forms

WPForms is a great form builder, and this plugin makes it even better. Tried to use CSS only and quickly ran into trouble. This plugin did what I needed in minutes.

Great plugin!

Thank you for being a lifesaver, I really owe you guys! Useful plugin specially for students like me.

Indispensable for WPForms forms

Great plugin, works perfectly and has given me great support in customizing forms created with WPForms. Thank you!

Beautifully Simple Styling

Perfect for styling WP Forms just the way you want them.

Love It!

So easy to customize WP-Forms without the hassle of CSS.

Does what it says

Just what I needed: stylish WpForms.

This is the best Forms plug so Far!

I have customized my forms with this simple and supper easy to use plug in. Thank you guys for make my sites looks better and my life easier with your solutions.

Keep that great work going.

Excellent

If you need to create functional forms very often this is an amazing tool. Complete and easy to use.

Very helpful

The perfect thing to help you customize and tweak your forms, especially those button colors. Recommended.

Very useful!

A very useful tool, without it there are very few options to stylize WP Forms. Thank you, good work!

An Awesome Plugin

This is really the first time I’m ever going to rate a plugin – not because all others aren’t good but I just love this plugin.

Perfect Addon Tool

Excellent plugin. Very reliable and used with my client sites running WPForms. Strongly recommend.

Very good

Simple setup, simple deploy, simple use! Thanks for this addon very helpfull for me

very very very perfect !

thank you for your plugin !

Great Plugin

Great plugin, helped me a lot. Thanks to the developers.

Easy and nice

Really easy to use for someone who has no specific knowledge.

Makes a difference

Solid, easy to use, clean, visual form styles.

Super handy tool

WPForms actually provides a lot of code on their site for styling forms, but this is still a really excellent little plugin that saves time and gives you more flexibility.

Highly recommended.

Always my go to

This does exactly what I need it to, simple to use, easy to set up and integrate.
I use this on over 100 sites and never had a problem.

Beautifully functioning

It can well unify the style of websites using wpforms, which is extremely helpful.

Magnificent Plugin for Styling WPForms

Marvelous plugin, easy to use, and solve the lack of WPForms design. I love this plugin.

Great Tool

Great tool\add on to WP Form. I needed to change the color of the Check boxes text on my form and was able to do it easily with Styler for WPForms.

Works …

The little I used it .. it works and does what I want

Very easy and helpful

This plugin made my day.. it helped me to resolve some small, but important issues

Really good

It can freely style wpform perfect

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *