☰

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
A renovation quote: a floor area typed as -42.456 becomes 42.46 m², the quote is calculated in euros, and the deposit slider, with a ruler and steps of € 50, has a maximum of half the quote that follows a smaller floor area.

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() or Min().

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 :numeric modifier, 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() and Max() in Number field calculations to get the lowest or highest value of a list of fields, and Pow() 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 $49

Why GravityWP

Gravity Forms specialists since 2014. The people who build the add-ons also answer your questions.

5.0/5from 30 reviews on WordPress.org and GoogleRead more

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.
Web developer, freelance
Thank you and [the GravityWP team] for great support. You helped me quite a lot with this calculator headache :)
Web developer, freelance
Thank you for being the best expert out there!
Developer, nonprofit membership organization

More about GravityWP

Get Advanced Number Field

Yearly license with updates and email support. Prices excl. VAT.

1 site

$49/year

Buy for 1 site

50 sites

$179/year

$3.58 per site
Includes priority support

Buy for 50 sites

All Access

$139/year

All 14 premium add-ons, 1 site
$9.93 per add-on

Get All Access

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

Can I display a unit next to the number?

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.

Do I need to write code?

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.

Can I turn a Number field into a slider?

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.

Does it work with product quantity fields?

Yes. All Advanced Number Field options are also available for the Quantity product field, and a quantity slider updates the product total while sliding.

What happens when my license expires?

Everything you installed keeps working. You no longer get downloads, updates, new features and support until you renew.

Can I get a refund?

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

SettingInputResult
Round, 2 decimals1.224 / 1.2261.22 / 1.23
Ceil, 2 decimals1.224 / 1.2261.23 / 1.23
Floor, 2 decimals1.224 / 1.2261.22 / 1.22
Fixed point notation, 5 decimals2.52.50000
Force Absolute-55
Custom unit % after the input2525%
Crore notation100000001,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

All Advanced Number Field documentation

Changelog of Advanced Number Field

v1.4.3

  • License and Update handler improvements

v1.4.2

  • License and Update handler improvements

1.4.1

  • Fixed deprecated GravityView hook; replaced `gravityview_field_entry_value_number` with `gravityview/template/field/number/output` (requires GravityView 2.0+).

1.4

  • Added HTML5 number input support for number fields with a 'decimal dot' format, when no advanced formatting is enabled, as this is Gravity Forms default behavior.
  • Introduced 'gravitywp_anf_decimal_dot_number_input' filter to allow switching input type from number to text.
  • Added GravityPDF integration to support Advanced Number Field formatting options in PDF generation.

1.3.7

  • Fixed condition for when to bypass default Gravity Forms currency initialization, which should only happen in case of a slider field or crore notation.

1.3.6

  • Fix an issue within the Form Editor where the Field Preview Refresh fires twice, causing issues with Compact View and possibly other pluging that hook into number field settings.

1.3.5

  • Fix value not being loaded correctly when editing a range slider field with Gravity View Edit Entry.

1.3.4

  • Fix JS deprecations and add support for older Gravity Forms versions.

1.3.3

  • Fix :label merge tag modifier not working for fields with fixed notation or custom unit.

1.3.2

  • Fix frontend Crore notation for Currency fields with Gravity Forms 2.9+.
  • Fix frontend scripts not loading when Crore notation is the only active setting.
  • Fix display issues with the Currency format for certain combinations with Advanced Number Field formatting settings.

1.3.1

  • Fix an issue where trailing zero's where removed from the display value for fields with rounding to 0 decimals.

1.3

  • Fix an issue that was introduced in v1.2, where the merge tag output doesn't follow the field's formatting settings.
  • Fix edge case division by zero issue for sliders with a ruler.
  • Prevent numbers that are part of the custom unit setting to end up in the value, on multipage forms, when going back a page.
  • Revert GF Theme Framework style resets for the slider input element (GF 2.9 compatibility).
  • Form editor performance improvements.
  • Removed direct link from form editor to slider styles to reduce the chance that users are opening the same form in two browser tabs.
  • Fix some features not working for the Quantity field type.
  • Fix edge case 'division by zero' error for sliders with a ruler.

1.2.4

  • Fixed a fatal error when editing pages with the Classic Editor plugin with Beaver Builder active.

1.2.3

  • Fix range validation by formula not working when '0' is used as formula.

1.2.2

  • Fixed an issue regarding the frequency of update checks to increase performance.

1.2.1

  • Update the license handler (minor fix).

1.2

  • Update the license handler.
  • Implemented crore notation, which is common in several Asian countries like India, Afghanistan, Bangladesh, Bhutan, Myanmar, Nepal, and Pakistan.
  • All Advanced Number Field features are now available for the Quantity Product Field.
  • Fix word-break issue in the slider ruler.

1.1

  • Implemented form settings to define custom slider styles.
  • Implemented a ruler option for the slider.
  • Improved compatibility with Gravity Forms Theme framework.
  • Fix compatibility issues with Gravity Perks Advanced Calculations.
  • Fix slider output when using decimal comma notation.
  • Fix an issue when the slider range is calculated based on the value of another slider.
  • Fix default range being set in the form-editor when a regular number field is selected after a number field with an active slider.

1.0.2

  • Fix PHP error when forcing absolute value on '-' input.

1.0.1

  • Fix PHP 8.1+ warning.
  • Fix compatibility issue with Gravity Perks Nested Forms. Thanks David!
  • Fix JS error when rounding infinite numbers.

1.0

  • Fix mergetag being url encoded twice when used in confirmation redirect url.
  • Fix slider instruction not showing below the field in newer versions of Gravity Forms.
  • Update license handler.

1.0-beta.14

  • Update dependencies to fix a security issue in a third party library.
  • Added support for dynamic frontend min/max range calculation for the range input (slider).
  • Fix range formula validation in the form editor.
  • Fix range calculations when the form has no regular calculations.

1.0-beta.13

  • Slider textual output now updates in realtime.
  • Added field setting to enable continuous evaluation of calculations and conditional logic rules based on the slider field value.
  • Set the Slider output's CSS break-word property to normal, to prevent breaking of the textual output value when the form is nested in a WordPress Column Block.
  • Fix some potential PHP 8.0+ errors. E.g. when bcmath module is unavailable.

1.0-beta.12

  • UX improvement: Remove custom units from the field value when the field has focus and is not readonly.
  • Fix PHP notice in admin area.
  • Fix 'less' and 'greater' not being translatable.
  • Fix compatibility issue with Gravity Flow Form Connector for fields with decimal comma fixed point notation.
  • Added pot file.
  • Added 'gravitywp_anf_show_thousands_sep' filter to allow hiding of thousands separators for fields with active advanced number settings.
  • Included Dutch translations.

1.0-beta.11

  • Improved handling of very large of very small results of pow() calculations.
  • Added getGWPAdvancedNumberFieldsSettings() function to retrieve settings for use in custom frontend scripts.
  • Fix slider output not outputting the formatted notation in some cases.
  • Fix calculations with slider values not working in some browsers in case of fixed notation.
  • Fix calculations with slider values not updating on change event when slider field has Currency format.
  • Fix slider value changing on multipage forms after going a page back in some browsers.
  • Fix console error when a number field is administrative.

1.0-beta.10

  • Implemented pow() for use in fields calculation formula setting. Precision of pow() calculations is limited for very large or very small results due to JS and PHP limits.
  • Fix abs and rounding not being applied in the backend when the field value is being used in another fields calculation formula.
  • Fix rounding being applied before absolute in backend. Now absolute is being applied before rounding, which is more common and also matches frontend behavior.
  • Fix ceil to 0 decimals not working in backend for numbers with 1 decimal.
  • Fix min/max/pow using formatted field values instead of calculation values.
  • **Low level change:** Apply rounding and absolute before saving the field value to the database from now on. This is a low level change but it shouldn't affect the usage of the value in calculations or display as the value is being abs/rounded before it is being used.

1.0-beta.9

  • Increased the possible number of decimal places to 6.
  • Fix formatting issue when using paged forms.
  • Fix rounding not working on formatted values (breaks calculations in some cases).
  • Created separate filters for calculations and formatting.
  • Performance improvements.

1.0-beta.8

  • Fix issue with slider with multiple forms on the same page.
  • Added 'gravityWP.advancedNumberField.sliderOutput'-filter.
  • Fix calculations with custom unit fields in the formula.

1.0-beta.7

  • Fix breaking calculations when result has currency format.
  • Fix currency formatting ignoring decimal comma.

1.0-beta.6

  • Implemented min() and max() for use in fields calculation formula setting.
  • Fixed PHP warning when ANF settings are empty.

1.0-beta.5

  • Fix: Ceil / Floor not working correctly in some cases due to JavaScript float accuracy.
  • Fix: Type error when field is calculated with custom unit active.
  • Fix: Apply absolute before rounding / formatting in fixed point.

1.0-beta.4

  • first public release

Start using Advanced Number Field today

Round, limit and format Number fields, or show them as sliders

Buy now from $49

30-day money-back guarantee

Proudly powered by WordPress