Community -

Rounding

A free plugin that lets you round numbers up or down by increments. Example: selling sheets of paper in sets of 500.

Certified Add-On

Round Gravity Forms field values up or down by specific increments. Cap increments, and set minimums.

Example:

  • You’re selling paper. Order must be placed in increments of 500 sheets.
  • If you try to order 499 sheets, you’re going to get 500.
  • If you try to order 600, you’re going to get 1000 (i.e. the next increment of 500).

Rounding Increments provides a way to round field values (particularly for Number, Quantity, and Calculation fields) up to the nearest specified increment. In addition, it provides a way to cap the increment and set a minimum.

All Options

Option Description Example
gw-round-n round to the nearest increment; will round up or down to the nearest increment gw-round-100
would round 1 to 0, 149 to 100, 150 to 200, etc
gw-round-up-n round up to the nearest increment; will always round up gw-round-up-50
would round 1 to 50, 511 to 100, 149 to 150, etc
gw-round-down-n round down to the nearest increment; will always round down gw-round-down-25
would round 1 to 0, 26 to 25, 51 to 50, etc
gw-round-min-n round up to the specified minimum if not reached gw-round-min-50
would round 1 to 50, 49 to 50, 51 and greater would not be rounded
gw-round-max-n round down to the specified maximum if exceeded gw-round-max-250
would round 251 to 250, 400 to 250, 250 and below would not be rounded
gw-round-custom-n round based on a custom function See the Custom Rounding CSS Class section.

A free plugin by Gravity Wiz.

We provide magically enhanced plugins, snippets, and tutorials for Gravity Forms.

  • Legit Gravity Forms wizards.
    We helped build Gravity Forms itself, and we’re certified developers.
  • Over 20,000 customers.
    Thousands of Gravity Forms developers depend on our plugins to power countless client projects.
  • Save thousands of dollars in development fees.
    Create custom, no-code solutions for your business from a growing list of 47+ plugins.
  • Access to hundreds of free snippets and plugins.
    Customize Gravity Forms to your exact needs. We’ve written and released over 700 free snippets, and dozens of free Gravity Forms plugins.
  • Legendary support.
    Our Pro plan averages a one hour response time and we help with minor customizations.

“Gravity Wiz rocks! They provide perks and snippets that make anything possible with Gravity Forms. Cherry on top? Their support is quick, clear and very informative. Couldn’t recommend enough.”
– Michael O’Callaghan, Designworx

Looking for functionality beyond Gravity Forms out-of-the-box?

Here’s an example of what you can do with our perks.

  • Nested Forms — Nest forms within forms, create Gravity Forms repeaters.
  • Populate Anything — Populate any Gravity Forms field or value dynamically from nearly any data source.
  • Google Sheets — Send and sync Gravity Forms data with Google Sheets.
  • Inventory — Manage Gravity Forms inventory for products, events, and appointments.
  • Entry Blocks — Display and edit Gravity Forms entries on the front end.
  • Notification Scheduler — Schedule Gravity Forms notifications to arrive whenever you want.
  • File Upload Pro — Enhance Gravity Forms file uploads with image previews, cropping, sorting.
  • QR Code — Generate QR codes from Gravity Forms field values, and scan QR codes to insert values into fields.

PS — feel free to download a bundle of our best free Gravity Forms plugins or subscribe to our Gravity Forms newsletter for weekly tips, tricks, and other useful resources.

Questions? Reach out to us.

Download This Add-On

Visit the developers website to purchase or download this third-party add-on.

Request Support

This plugin is supported by the developer on their site. We do not provide direct support for this add-on.