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

  1. Open the option set and click Add option.
  2. In the Customer input group, choose Text, Text area, Number, Email or Phone.
  3. Enter a Label. Optionally add Help text.
  4. Fill in the settings listed below for your type.
  5. Switch on Required if customers must fill the field in before adding to cart.
  6. 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
Email 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

A Text option called Gift message with a condition, a placeholder, a character limit and Required switched on

Text area

A Text area option called Delivery note with its Label, Placeholder and Character limit, shown as a larger box in the Preview

Number

A Number option called Number of letters with a price per unit, the unit letter and a minimum and maximum

Email

An Email option called Recipient email with a placeholder, shown in the Preview

Phone

A Phone option called Recipient phone, shown in the Preview

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.

Related articles

Date and time, and date range options →