The type decides what a value can be and which input staff and customers fill in.
Types per tab
| Type | Products and variants | Orders | Customers | Holds |
|---|
| Single-line text | Yes | Yes | Yes | Up to 255 characters |
| Multi-line text | Yes | Yes | Yes | Up to 5,000 characters, line breaks kept |
| Whole number | Yes | Yes | Yes | A number without decimals |
| Decimal number | Yes | Yes | Yes | Up to 6 decimal places |
| Yes / no | Yes | Yes | Yes | Yes or no |
| Date | Yes | Yes | Yes | A day, YYYY-MM-DD |
| Date and time | Yes | No | No | A date and time, entered in UTC |
| Choice list (one) | Yes | Yes | Yes | One of your choices |
| Choice list (several) | Yes | Yes | Yes | Several of your choices |
| Link (URL) | Yes | No | No | A link that starts with http:// or https:// |
| Colour | Yes | No | No | A colour code like #1a2b3c |
| File (image or PDF) | Yes | Yes | No | One file |
| JSON (API and import only) | Yes | No | No | Data for integrations. Never shown on the website |
| Product reference | Yes | No | No | Another product of your shop, entered by its handle or ID |
There is no rich-text or HTML type. Everything is shown as plain text.
Value rules
The Value rules card shows the rules your type takes. All are optional.
| Type | Rules |
|---|
| Single-line and multi-line text | Minimum length, Maximum length, Pattern (regular expression) |
| Whole number | Minimum, Maximum, Step |
| Decimal number | The same, plus Decimal places (0 to 6) |
| Date and Date and time | Earliest date, Latest date: a date such as 2026-01-31, or days from today such as +7d |
| Choice list (several) | Choose at least, Choose at most (0 to 50) |
| File | Allowed files (JPG, PNG, WebP, HEIC, PDF) and Largest file (MB), 1 to 5 |
A pattern can be at most 200 characters. A pattern that is not valid, or too complex to check, is refused when you save the field. A value that does not match gets "The value is not in the expected format."
The maximum of a pair must not be below its minimum.
Default value
Default value is in the Settings card for every type except files and product references. Write yes / no as true or false, dates as YYYY-MM-DD, and choices by their value, with several separated by |. The default is saved with the field and returned by the API. It is not filled in for you on products or at checkout.
Changing the type later
While a field has no values, you can change its type on the edit form. Once it has values, only a few safe changes are possible. See Change a field's type.