Skip to main content
Form Fields

Bit Form – Number Field

Estimated reading: 4 minutes 23 views

The Bit Form Number field collects a numeric answer, such as an age, a quantity or years of experience. It shows the number keyboard on phones, rejects text that is not a number, and can limit the answer to a range.

Availability: Bit Form (free). Value Range, Suggestion and Unique Entry need Bit Form Pro.

When to use the Number field

Use it when you need a number you can compare or calculate with. For a range picked with a handle, use the Slider field. For money, use the Currency field, which adds the currency symbol and formatting. For codes that only contain digits, such as a ZIP code or an ID with leading zeros, use a Text field: a Number field treats 00123 as a number.

Add the Number field

In the form builder, open Add Fields, then click Number in Basic Fields or drag it onto the form. A new Number field has the label “Number” and the placeholder “e.g. 123”. See the Form Fields Overview for other ways to add fields.

Example: a Years of Experience field

In the job application form, Years of Experience is required, accepts values from 0 to 50, and shows the placeholder e.g. 5. It sits next to Portfolio URL, each half width, set with Size & Position.

Common settings

The Number field also has the settings that most fields share. They work the same on every field, so they are explained once in Common Field Settings and Field Validation. Click a setting to read how it works:

Number field settings

Value Range (Pro)

Value Range(Min/Max): on the Advanced tab sets the lowest and highest number a visitor can enter. Each limit has its own error message. See Value Range.

Value range of the years of experience number field with minimum 0 and maximum 50 and their error messages
  1. Minimum 0, with the message “Minimum 0 is required”.
  2. Maximum 50, with the message “Maximum 50 is allowed”.
  3. The Years of Experience field that uses the range.

Invalid Error Message

The Number field accepts only numbers. Invalid Error Message: on the Advanced tab sets the message visitors see when they type something that is not a number, such as 5e. The default is “Please, enter only numbers”. Check Custom Error Message and click the pencil icon to write your own.

Invalid error message setting of a number field with the message please, enter only numbers, next to the years of experience field
  1. Invalid Error Message: with the default message.
  2. The Years of Experience field.

On the form, the message appears under the field:

Years of experience field on the form with the value 5e and the error please, enter only numbers
  1. The value 5e is not a number, so the field shows “Please, enter only numbers”.

Decimals and number format

The field accepts whole numbers and decimals with a dot, such as 12, -3 or 2.5. Thousands separators and scientific notation are not accepted, so ask for 1500, not 1,500. There is no step setting: to accept whole numbers only, add a RegEx Pattern (Pro) to a Text field, or use a Value Range and explain the format in the Helper Text.

Using the Number field value

Number values work in calculations, for example to multiply a quantity by a price. In Conditional Logic, number fields offer Greater Than, Less Than and Between, so you can show a field only to applicants with more than five years of experience.

Limitations

  • Value Range is checked in the browser. The server checks only that the value is a number.

FAQ

How do I allow only numbers between 1 and 10?

Set Value Range(Min/Max): (Pro) on the Advanced tab to Minimum 1 and Maximum 10. See Value Range.

Why does my phone number lose its leading zero?

A Number field stores a number. Use the Phone Number field or a Text field for phone numbers and codes.

Share this Doc

Bit Form – Number Field

Or copy link

CONTENTS
Before you go
The #1 Affordable Form Plugin in the Industry

10,000+

Trusted Businesses

5 Star Rated

on WordPress.org
shield
No Risk: Get a “No-Questions-Asked” refund if Bit Form is not the right fit for your project.

Subscribe

×
Cancel