Skip to main content

Number field

What it does​

A Number field is a box that takes only a number, such as how many items or rooms the visitor means. You find it in the builder's left panel, in the Text Input group, and add it by dragging it onto the form, as described in Adding fields and sections.

The box accepts whole numbers, decimals with a point, such as 2.5, and negative numbers. The number is saved as the visitor typed it and shows that way on the submission page, in the submission list, in an export and in notification emails.

When to use​

  • Use Number when you need a quantity you may want to compare, for example to send large orders to a different team. Notification conditions can check whether it's greater or less than a number.
  • Use a Text field for numbers that aren't amounts, such as an order number or a postcode, which can start with a zero or hold dashes. See Text field.
  • Use Phone for phone numbers. See Phone field.

Settings​

Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the field on the form. Its settings show in the right panel, on the tabs General, Validation and Appearance. You'll change these settings most often:

  • Minimum Value and Maximum Value (Validation tab) set the smallest and largest number the visitor can send. Decimals such as 0.5 work, and 0 counts as a bound. A new field has neither.
  • Step (Validation tab) sets how much the browser arrows and the step buttons add or take away, counted from the Minimum Value, for example 0.5. The visitor can only send a number that fits the steps. Leave it empty to step by 1 and accept any number.
  • Placeholder is a hint shown inside the empty box, such as 1.
  • Required makes the visitor fill in the box before the form can be sent.
  • Show Step Buttons (Appearance tab) adds a minus and a plus button on either side of the box, the same buttons as the quantity of an Order Items field. It's off for a new field.

The table below lists every setting. Visitors see a change after you click Publish Changes in the builder's top bar.

All settings of this field
Setting Where in the panel Values Translatable
Enable Field General → Basic On or off No
Label (required) General → Basic Text Yes
Field Code General → Basic Text No
Required General → Basic On or off No
Required Error Message General → Basic Text Yes
Help Text General → Basic Formatted text Yes
Tooltip General → Basic Formatted text Yes
Placeholder General → Field Settings Text Yes
Hide in Submissions General → Submission Display On or off No
Allow in Staff Email Subject General → Submission Display On or off No
Submission Label General → Submission Display Text Yes
Personal Data General → Privacy By field type — Not personal, Not personal, Personal data No
Browser Autocomplete General → Advanced Text No
Unique Value Validation → Unique On or off No
Error Message Validation → Unique Text Yes
Minimum Value Validation → Value Range Number No
Maximum Value Validation → Value Range Number No
Step Validation → Value Range Number No
Plus and Minus Buttons Validation → Value Range On or off No
Desktop Appearance → Layout Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off No
Tablet Appearance → Layout Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off No
Mobile Appearance → Layout Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off No
Show Label Appearance → Style On or off No
Help Text Position Appearance → Style Below input, Above input No
Container Classes Appearance → CSS Text No
Input Classes Appearance → CSS Text No
Custom Attributes Appearance → Advanced Text No
Inline Style Appearance → Advanced Text No

Validation​

Check What the visitor sees when it fails
A number, always on "Please enter a valid number in this field." under the box. It shows when the box holds something other than a plain number.
Minimum Value and Maximum Value, both set "Please enter a value between 1 and 20." under the box, with your numbers.
Minimum Value only “Please enter a value greater than or equal to "1".” with your number.
Maximum Value only “Please enter a value less than or equal to "10".” with your number.
Step “Please enter a valid value. The two nearest valid values are "2" and "2.5".” with the two closest numbers that fit, or “The nearest valid value is …” when the next one would pass the maximum.
Required "This is a required field." under the box, or your Required Error Message.

These checks run in the visitor's browser and again when the form arrives, so a number outside the range or off the steps is refused even if someone changes the page. The store's check names the field, for example "Rooms: Please enter a value less than or equal to 10."

Logic​

  • Show or hide this field: yes. A rule that starts from a field with options, such as a Select, can show or hide a Number field. See Show or hide fields and sections.
  • Start a rule: no. Only fields with options can start a rule. A Logic tab appears on a Number field only once a rule shows or hides it, and lists that rule.
  • Email conditions: yes, with Is, Is Not, Greater Than and Less Than. For example, a notification with "Number of stores Greater Than 10" goes out only for larger trade customers. See Condition operators.

Limits​

  • The field has no setting for how many decimals a visitor may type, and no Default Value. Step limits which numbers pass, not how they're typed.

Troubleshooting​

  • A visitor can't send a number that looks fine. It doesn't fit the Step. Steps count from the Minimum Value: with a minimum of 1 and a step of 2, 1, 3 and 5 pass and 2 doesn't. Change the step or the minimum, or clear Step.

What's next​

Applies to WebForms 4Last reviewed October 14, 2026