Premium Gravity Forms add-on
Advanced Number Field
Round, limit and format Number fields, or show them as sliders
Advanced Number Field is a Gravity Forms add-on that extends the Number field. Round values, force absolute numbers, show a fixed number of decimals, add a custom unit like % or m², use crore notation, calculate the minimum and maximum from other fields, use min(), max() and pow() in formulas and turn the field into a styled range slider, without writing code.
- 30-day money-back guarantee
- Support from the developers
For Gravity Forms builders of order forms, calculators and quotes who want number input that is valid, readable and easy to enter.
Clean numbers in every entry
Rounding, fixed decimals and absolute values are applied in the field itself, so totals and prices come out the way you expect.
Limits that follow the form
The allowed minimum and maximum can depend on other answers, so visitors cannot enter a value that does not fit their earlier choices.
Easier to fill in
A unit next to the input and a slider with a ruler make it clear what to enter, especially on phones.
Try it
This form runs Advanced Number Field on this site. Fill in the fields and see the add-on at work.
Use cases
- Price calculators that round amounts to two decimals, always up.
- Quote forms that show percentages or square meters next to the input, or amounts in lakh and crore.
- Forms where a deposit cannot be higher than the total entered earlier.
- Loan or budget forms with a slider and a ruler instead of a typed amount.
- Product forms where the Quantity field gets the same rounding, units and slider options.
- Scoring forms that take the highest or lowest of several answers with
Max()orMin().
Features
-
Rounding, fixed decimals and absolute numbers
Check Round the Value to round typed and calculated values to 0–6 decimals (0 or 2 for Currency) with Round, Ceil (always up) or Floor (always down), and Fixed point notation to always show those decimals, so with 5 decimals 2.5 becomes 2.50000. Force Absolute turns -5 into 5 before rounding.
-
Custom units and crore notation
Add Custom Unit places a unit such as %, m², ft² or gram before or after the input, and hides it while the visitor types. Crore notation groups large numbers the way they are written in India and nearby countries, as 1,00,00,000, also in the Currency format.
-
Formatted values in entries, emails, views and PDFs
The formatting is used in the entry list, the entry details, merge tags in notifications and confirmations, GravityView and Gravity PDF. The
:numericmodifier, as in{Area:1:numeric}, returns the plain number. -
Calculated minimum and maximum
Enable Minimum Value Calculation and Enable Maximum Value Calculation set the valid range with a formula of merge tags, with an optional instruction for the visitor. A slider’s range follows the other answers while the form is filled in, and a value outside the range gets an error message on submit.
-
Min(), Max() and Pow() in formulas
Use
Min()andMax()in Number field calculations to get the lowest or highest value of a list of fields, andPow()to raise a value to a power. -
Range slider
Show as Slider turns the field into a slider with a minimum, maximum and Range Step, with the formatted value shown next to it. Add a ruler with its own step that can be hidden on small screens, update calculations and conditional logic while sliding and style the track and thumb with 19 settings in the form settings.
Ready to use Advanced Number Field? 30-day money-back guarantee.
Buy now from $49Why GravityWP
Gravity Forms specialists since 2014. The people who build the add-ons also answer your questions.
Built the Gravity Forms way
Our add-ons use the official Gravity Forms add-on framework, so settings, feeds and entries work the way you already know.
Compatibility guaranteed
Works with current Gravity Forms versions and certified add-ons like Gravity Flow, GravityView and Gravity Perks. If something conflicts, we fix it.
Support from the developers
Your question goes straight to the people who wrote the code. Good feature requests often make it into the next release.
What customers say
I’m so thankful for this great feature and your special efforts in building it. I know more people will find it helpful as it goes live.
Thank you and [the GravityWP team] for great support. You helped me quite a lot with this calculator headache :)
Thank you for being the best expert out there!
Get Advanced Number Field
Yearly license with updates and email support. Prices excl. VAT.
30-day money-back guarantee on your first purchase. Refund policy. When a license ends, everything you installed keeps working; only downloads, updates and support stop. Compare all licenses
Questions before you start? Ask us
Frequently Asked Questions
Yes. Add a custom unit before or after the input. Use the :numeric merge tag modifier when you need the value without the unit. Custom units are not available for fields with the Currency number format.
No. Everything is set in the field settings and the form settings. Developers can change the text next to a slider with the gravityWP.advancedNumberField.sliderOutput JavaScript filter, hide thousands separators with gravitywp_anf_show_thousands_sep and switch plain decimal-dot number inputs to text inputs with gravitywp_anf_decimal_dot_number_input.
Yes. Check Show as Slider, set the minimum, maximum and step size and optionally show a ruler. The slider can update calculations and conditional logic while sliding; a field with its own calculation cannot be a slider.
Yes. All Advanced Number Field options are also available for the Quantity product field, and a quantity slider updates the product total while sliding.
Everything you installed keeps working. You no longer get downloads, updates, new features and support until you renew.
Yes, within 30 days of your first purchase. Request it through your account on my.gravitywp.com. Renewals are not refunded; see the refund policy.
Examples
| Setting | Input | Result |
|---|---|---|
| Round, 2 decimals | 1.224 / 1.226 | 1.22 / 1.23 |
| Ceil, 2 decimals | 1.224 / 1.226 | 1.23 / 1.23 |
| Floor, 2 decimals | 1.224 / 1.226 | 1.22 / 1.22 |
| Fixed point notation, 5 decimals | 2.5 | 2.50000 |
| Force Absolute | -5 | 5 |
| Custom unit % after the input | 25 | 25% |
| Crore notation | 10000000 | 1,00,00,000 |
Calculated minimum value, the sum of fields 1 and 2:
{Number:1} + {Number:2}
Highest of three fields, a formula that uses the lowest, and field 1 squared:
Max({Number:1}, {Number:2}, {Number:3})
( Min({Number:1}, {Number:2}, {Number:3}) + 10 ) / 2
Pow({Number:1}, 2)
All settings are described in the documentation.
Requirements
- Gravity Forms 2.5 or later
- WordPress 5.0 or later, tested up to 6.9
- PHP 7.0 or later
- Optional: GravityView 2.0 or later and Gravity PDF, to show the formatted values in views and PDFs
Current version 1.4.3, updated 2 September 2026. View the changelog
Documentation and tutorials
- Range Slider Settings
- Styling the Range Slider
- Custom Units
- Rounding
- Fixed Point Notation
- Force Absolute
- Gravity Forms Discount Code Field: Apply Fixed or Percentage Discounts in a Form
- Range slider for Gravity Forms Product field (Price Field)
- Styling (range) Slider Gravity Forms
Start using Advanced Number Field today
Round, limit and format Number fields, or show them as sliders
Buy now from $4930-day money-back guarantee