For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Your account type and plan may limit the number of custom fields you can create.


Create a single-line text field

1

Open Custom Fields

Go to Settings, find Custom Fields under the Data section, and click New Custom Field.

2

Set the scope and type

Set Field Scope to Basket or Option Set and select Type: Single-line text.

3

Fill in the field details

Provide the remaining required information.

#
Setting
Description

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.

New Custom Field form with single-line text settings for the Basket scope

Option Set settings

For single-line text custom fields created for an Option Set, two additional settings are available:

#
Setting
Description

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.

New Custom Field form with single-line text settings for the Option Set scope

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.

Single-line text input on the Basket form

Was this helpful?