Single-Line Text Field
Collect short text in the Basket or store it on Option Sets for SKU and price codes. Learn how to create a single-line text field.
A single-line text field can be used for both Baskets and Option Sets. For Baskets, it appears as an input field where customers can provide additional information, such as a short note. For Option Sets, this field is visible in the admin panel within the Option Set. You can later use this information as a dynamic value in different areas, such as SKU codes or Price Codes.
Create a single-line text field
Fill in the field details
Provide the remaining required information.
1
Name
The name for the single-line text custom field. Required.
2
ID
Automatically generated ID from the name in a URL-friendly format. Required.
3
Field Scope
Basket or Option Set. Required.
4
Type
Single-line text. Required.
5
Regex Regular Expression
A pattern used to validate the format of text entered by the user. For example, you can use a regular expression to restrict input to only letters. Optional.
6
Description
A description of the custom field, which can be used to provide additional details for your customer. Optional.
7
Min Digits
Specifies the minimum number of digits required for the input. Optional.
8
Max Digits
Specifies the maximum number of digits allowed for the input. Optional.
9
Required Setting
Defines whether the input is required or not.

Option Set settings
For single-line text custom fields created for an Option Set, two additional settings are available:
10
Custom field must be unique
Controls whether the data entered must be unique for each entry, preventing duplicate values.
11
Exposed to Embed
Enabled by default to allow the custom field to be used in embeds.

How it appears in the Basket
Once you've created a single-line text custom field and added it to the Basket form, it appears as a simple input field. The field can be set as required or optional, and it can also include validation based on a Regex Regular Expression.

Related articles
Was this helpful?