Custom Text Field
Overview:
Checkout Ninja Blocks introduces a powerful feature called "Custom Text Field" designed to enhance your Shopify checkout experience. This feature allows you to collect custom input directly from customers during the checkout process, whether it's attributes or metafields, single or multiline, regex validation, conditional visibility, and more
Configuring Custom Text Field:
- Name: Assign a unique name to the text field.
- Type: Choose from "Single Line" or "Multi-Line" based on the nature of the information you want to collect.
- Label: Define a clear label for the custom text field to guide customers on what information is expected.
- Validation (Regex): Set regex validation rules to ensure the entered data meets specific criteria (e.g., email format, numeric values).
- Error Message: Customize the error message displayed if the entered data does not meet validation criteria.
- Storage Location: Decide whether the value should be stored as an attribute or a metafield.
- Conditional Visibility: Specify conditions under which the field should appear, making it dynamic based on certain criteria.
Example Usecase:
Let's say you run a gift shop and want customers to include a personalized message for each order:
- Label it as "Gift Message."
- Treat it as an attribute for visibility in order details.
- Customers entering a message during checkout will see this information in their order confirmation.