Custom Checkout Fields
Add, validate, and manage custom input fields on your checkout, from simple text inputs to multilingual and sensitive fields.
Custom checkout fields overview
What custom checkout fields are and how to add them to your checkout.
Add custom fields to your checkout
How to add custom text, dropdown, radio, and checkbox fields to your checkout using HTML.
Hide sensitive custom field data from receipts and emails
How to use the h: field name prefix to keep sensitive custom checkout field data out of emails.
Keep custom field values when the checkout re-renders
How to to preserve custom checkout field values when the checkout page re-renders.
Pass custom field data to custom shipping code
How to pass a custom checkout field's value into your custom shipping code using a data attribute.
Pre-populate custom checkout fields
How to prepopulate a custom checkout field's value using a hidden session attribute and Twig.
Set up multilingual custom checkout fields
How to translate custom checkout field labels and descriptions for stores using multiple template set languages.