🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 31, 2026

How to Let Visitors Enter Measurements in Their Own Units in Gravity Forms

GravityExtra
How to Let Visitors Enter Measurements in Their Own Units in Gravity Forms

Ask a visitor in Manchester for their height and you will hear “five foot ten”. Ask a visitor in Lyon and you will hear “one metre seventy-eight”. Ask a contractor in Texas for the size of a deck and you get square feet; ask one in Melbourne and you get square metres. People answer in the units they grew up with, and they make mistakes when a form forces them to convert in their head.

Gravity Forms is excellent at turning answers into prices, bookings and records, but its Number field takes one plain number with no unit. This guide explains why that causes trouble on fitting, health, quote and shipping forms, and shows how to let every visitor use their own units while your entries, calculations and reports use one. It is written for site owners and for the developers who build their forms, and it uses the Gravity Forms Measurement Field add-on for the unit conversion.

Why one number with no unit is not enough

The usual workaround is a Number field labelled “Height (cm)” or “Area in m²”. It looks tidy, but it fails in quiet, expensive ways:

  • Visitors type the wrong unit anyway. A label is easy to miss. “70” in a centimetre box is a child; it was meant as inches.
  • Mental arithmetic is error-prone. Converting 11 stone 4 pounds to kilograms, or 1,076 square feet to square metres, is not something most people can do on a phone in a hurry.
  • Two-part values do not fit one box. Feet and inches, or stones and pounds, are two numbers. People type “5.10” for five foot ten, which is really five and a tenth feet.
  • You lose visitors. Some simply give up when the form speaks a unit system they do not use.
  • Two Number fields per measurement double the mess. A metric box and an imperial box means rules to hide one, formulas that check which one was filled and reports with two columns for the same thing.

A calculated Number field cannot help either: in Gravity Forms a field with a calculation cannot also take input from the visitor. What you need is a field that accepts input in several units and hands the rest of the form one consistent number.

Who needs unit conversion on a form

Measurements turn up in more forms than you might expect:

  • Fitness, sports and bike fitting: height and weight for sizing, team kit and equipment.
  • Clinics, pharmacies and wellbeing services: intake forms with height, weight and body mass index.
  • Flooring, painting, landscaping and roofing quotes: an area in square metres, square feet or acres, priced per unit.
  • Shipping and removals: parcel weights in kilograms or pounds, room sizes, load volumes.
  • Pools, tanks and water treatment: volumes in litres, US gallons or UK gallons, which are not the same.
  • Catering, labs and cold-chain logistics: temperatures in Celsius or Fahrenheit.

In each case the visitor knows the value in one unit system and the business works in another. The form is the natural place to bridge the two.

How the Measurement field works

The Measurement field shows a number box and a unit list. For feet and inches, stones and pounds or pounds and ounces it shows two boxes, labelled with their units. As the visitor types, a short line under the field shows the value in your base unit, for example “= 177.8 cm”, so they can see that the form understood them. If they change their mind about the unit, the value already typed is converted rather than lost: 70 inches becomes 177.8 centimetres, then 5 ft 10 in.

A bike fitting form: Height typed as 5 ft 10 in with the line = 177.8 cm, Weight typed as 11 st 4 lb with = 71.67 kg and a BMI 22.7 Healthy weight badge
Visitors type in their own units; the form shows the stored value and the BMI as they go.

Behind the scenes, every entry stores the value in the base unit you chose. That single number is what calculations, conditional logic, sorting, the entries list and the export use. The text the visitor typed is kept as well, so nobody has to wonder whether “177.8” came from someone typing 70 inches or 5 ft 10 in.

Step by step: a height and weight form

Here is how to build a sign-up form that takes height in feet and inches or centimetres and weight in kilograms, pounds or stones and pounds, stores centimetres and kilograms, and works out the body mass index.

  1. Add the Height field. In the form editor, click Measurement in Advanced Fields. A new field starts as a body height field with centimetres and feet and inches. Label it “Height”.
  2. Choose the units. Tick the units your visitors use. For a UK or US audience, put feet and inches first with “Unit shown first”; for a European audience, centimetres.
  3. Pick the stored unit. Set “Store the value in” to centimetres and the decimal places to 1.
  4. Set limits. Enter a minimum of 4.5 ft and a maximum of 2.2 m. Each limit has its own unit, so you can write the rule in whatever unit is natural to you.
  5. Add the Weight field. Add another Measurement field, set Measures to Weight, tick kilograms, pounds and stones and pounds, and store kilograms with two decimals.
  6. Turn on the BMI helper. In the Weight field, choose Height as the height field, add a Number field labelled “BMI” and choose it as the field that receives the BMI. Tick “Show the BMI and its band”.
  7. Test it. Preview the form, type 5 ft 10 in and 11 st 4 lb, and you will see “= 177.8 cm”, “= 71.67 kg” and “BMI 22.7: Healthy weight”.

The full list of settings, with what each one does, is in the Measurement Field documentation.

Choosing the base unit

The base unit is the unit of record. Pick the unit your business already works in: the one on your price list, in your spreadsheet or in the system you import entries into. A flooring company that prices per square metre stores square metres; a US pool company that doses chemicals per gallon stores US gallons. Choose it before the form goes live, because changing it later does not convert entries that already exist.

Decimal places matter too. One decimal is right for body height in centimetres; two decimals suit kilograms; three suit litres. The stored value is rounded half away from zero, and values in other units used by merge tags and calculations keep two more decimals than the stored value, so a height of 177.8 cm still gives 1.778 m.

Accuracy you can rely on

Conversion factors are often copied with too few digits. Every unit in the Measurement field is defined from its exact legal value: an inch is exactly 2.54 centimetres, a pound exactly 0.45359237 kilograms, an acre exactly 4,046.8564224 square metres, a US gallon 231 cubic inches and a UK gallon 4.54609 litres. Fahrenheit is converted through kelvin with the exact offset of 459.67. Every definition and every pair of units is covered by automated tests.

Just as important, the value is worked out again on your server. The browser converts as the visitor types so they get instant feedback, but when the form is submitted the add-on reads only the numbers typed and the unit chosen, checks them and converts them itself. Someone who edits the page in their browser, adds a unit to the list or changes a hidden value cannot change what is stored or what a calculated price comes to.

Minimum and maximum in any unit

Limits stop impossible values at the door: a height of 17 metres, a parcel of 4 grams, a floor area of 40 square kilometres. In the Measurement field each limit has its own unit, and the visitor sees the limits in the unit they are using. A visitor typing in feet and inches who enters 4 ft 5 in against a minimum of 4.5 ft reads “Please enter a value from 4 ft 6 in to 7 ft 2.6 in”; a visitor typing in inches reads “from 54 in to 86.6 in”. You can write your own message with the placeholders for the minimum, the maximum and the value they typed.

Using measurements in calculations and prices

Because the field hands the form a plain number, it works in Number field calculations and calculated product prices. Add a unit to the merge tag to get the value in that unit, whatever the visitor typed:

  • A flooring quote: {Floor area:1:m2} * 24.5 prices every square metre at 24.50, even when the customer typed square feet.
  • A shipping estimate: {Parcel weight:2:lb} * 1.2 charges per pound from a field stored in kilograms.
  • A pool dosing guide: {Pool volume:3:gal_us} / 10000 works out doses per ten thousand US gallons from a volume typed in litres.
  • A bike fitting: {Height:1:in} * 0.45 gives a starting inseam guide in inches.

The price updates in the browser as the visitor types and is worked out again on the server from the stored value, so the total on the form and the total on the entry always match. The value is written with the decimal separator your calculation expects, which keeps decimal-comma Number fields correct.

Conditional logic on measurements

Measurement fields can drive conditional logic. Rules compare the stored value, so you write them once in your base unit and they work for every visitor. Show a note about extra-large frames when height is greater than 190 cm, and it appears for a visitor who typed 76 inches. Show a heavy-goods surcharge notice when a parcel is greater than 30 kg, and it appears for someone who typed 70 lb. The same rule is checked again on the server when the form is submitted, so a field hidden by the rule is not saved.

Notifications and confirmations

Use the field merge tag with a modifier to say exactly what you need. {Height:1} gives the stored value with its unit, “177.8 cm”. {Height:1:ft_in} gives “5 ft 10 in”, {Height:1:display} repeats what the visitor typed, and {Height:1:in} gives the plain number in inches. A confirmation can greet a visitor in their own units while the notification to your team uses yours.

Body mass index without a separate calculator

Health and fitness forms often need the body mass index. With the BMI helper on a weight field, the add-on works out BMI from the stored height and weight, rounds it to one decimal, shows it with its adult band under the field, writes it into a read-only Number field and checks it again on the server. Because both values come from Measurement fields, it does not matter whether the visitor typed centimetres or feet and inches, kilograms or stones. Remember that BMI is a screening number for adults and not a diagnosis.

Clean data for reports and imports

One unit per field is what makes measurement data usable. The entries list shows every value in the base unit, the export gives a plain number ready for a spreadsheet, and an optional “as entered” column records what each visitor actually typed. When a figure looks odd, you can see at a glance whether the visitor typed 70 inches or 70 centimetres.

Mobile and accessible by design

Most measurement forms are filled in on phones. The Measurement field opens the number keyboard, accepts a decimal comma as well as a decimal point, and stacks the boxes and the unit list in one column on small screens. The field is a fieldset with the field label as its legend, every box has its own label, the unit list is labelled, and the converted value is announced politely by screen readers. Tab moves from box to box and then to the unit list.

The same form on a phone: the number boxes and unit lists stack in one column
On a phone the boxes and the unit list stack, with large touch targets.

Tips for better measurement forms

  • Offer the units your visitors use, not every unit there is. Two or three choices are easier than ten.
  • Put the most common unit first. Use “Remember the unit each visitor picks” for forms people return to.
  • Set realistic limits. They catch typing slips such as an extra zero before they reach your team.
  • Say why you ask. A field description such as “We use this to choose your frame size” earns better answers.
  • Keep the base unit stable. Decide it once, before entries arrive.

Frequently asked questions

Does it handle US and UK gallons separately?

Yes. They differ by about 20 percent, so both are offered as separate units, along with US and UK pints and fluid ounces.

Can visitors enter negative numbers?

Only for temperatures, and never below absolute zero. Lengths, weights, areas and volumes take 0 or more.

Is anything sent to an outside service?

No. Conversions and checks run on your own server; the add-on only contacts GravityExtra for its licence and updates.

Which versions of Gravity Forms are supported?

Gravity Forms 2.9 and newer, on WordPress 6.5 or newer with PHP 7.4 or newer.

Get started

If your forms ask for a height, a weight, an area, a volume or a temperature, let visitors answer in the units they know and keep one unit for yourself. Fewer mistakes, fewer abandoned forms and cleaner data follow. Install the Gravity Forms Measurement Field (Unit Conversion) add-on, add a Measurement field to your form and see the difference on your next entry.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr