Linking Forms with Single Select Metafields
This page explains how to link single-select metafields with forms created using AL CustomerMetaSync.
Supported Metafield Types
- Single line text (single_line_text_field)
- Multi-line text (multi_line_text_field)
- Date (date)
- Date and time
- Integer (number_integer)
- Decimal (number_decimal)
- Color (color)
- ID (id)
- URL (url)
Note: Single select are intended for scenarios where the customer should choose only one value from a predefined set of options. It is recommended to define preset values in your Shopify metafield definitions.
Examples:
- Gender (Male / Female / Non-binary)
- Usage purpose (Personal / Business)
Configuration in the Form Builder
Click the Add Field button and select Single Select
.
Enter a clear field label that helps the customer understand the purpose of the question.
From the list of metafields, choose the one you'd like to link. When you click the input field, available metafields will appear.
If preset values are configured, trying to add a value outside of those will result in a validation error, like the example below.
If needed, configure additional options for the field. For more information on available options, refer to Form Configuration Details.
Entering and Saving Form Data
When a customer selects an option and submits the form from either the Profile Page or the Thank You Page, the selected value will be saved to the corresponding customer metafield.
Next up, we’ll cover how to link forms with multi-select metafields.