Text, text area, number, email and phone options
These five option types let customers type something on the product page: a short line, a longer note, a number, an email address or a phone number. This article lists the settings of each and how the storefront checks what customers enter.
Add one of these options
- Open the option set and click Add option.
- In the Customer input group, choose Text, Text area, Number, Email or Phone.
- Enter a Label. Optionally add Help text.
- Fill in the settings listed below for your type.
- Switch on Required if customers must fill the field in before adding to cart.
- Save the option set.
Settings by type
| Type | What customers enter | Settings besides Label, Help text and Required |
|---|---|---|
| Text | A short line of text | Placeholder, Character limit |
| Text area | A longer message on several lines | Placeholder, Character limit |
| Number | A number, such as a ring size | Placeholder, Minimum, Maximum, and Pricing |
| An email address | Placeholder | |
| Phone | A phone number | Placeholder |
| Setting | What it does |
|---|---|
| Label | The name above the field. Up to 100 characters. |
| Help text | A line under the label. Up to 300 characters. |
| Placeholder | Hint text inside the empty field. Up to 100 characters. |
| Character limit | The most characters a customer can type. Whole number from 1 to 1000. Text and Text area only. A new option starts at 120. |
| Minimum and Maximum | The lowest and highest number a customer can enter. Both are optional. Up to 2 decimals. The minimum cannot be higher than the maximum. |
| Required | Customers must fill this field in before adding to cart. |
How each type looks in the editor
Text

Text area

Number


Phone

Prices
Text, Text area, Email and Phone have no add-on price.
Number can charge by the number the customer enters. Under Pricing, choose Price per unit the customer enters. Then enter a Price per unit and a Unit, such as cm. The unit is shown next to the price, like "$0.50 per cm". With a price per unit, Minimum and Maximum are required: the minimum must be 0 or more, and the maximum gives the add-on its upper limit. Choose No add-on price to use Number without a price. See How to charge per unit: number, range slider and dimension options.
What the storefront checks
Customers see these messages when something is wrong.
| Situation | Message |
|---|---|
| A required field is empty | "This field is required." |
| Email is not a valid address | "Enter a valid email address." |
| Phone is not a valid number | "Enter a valid phone number." |
| Number is not a number | "Enter a valid number." |
| Number is below the minimum | "Enter a number of at least" the minimum |
| Number is above the maximum | "Enter a number no more than" the maximum |
Text and Text area stop accepting characters once the character limit is reached.