Skip to content
Log in

Register Form - Liquid Form Reference

On this page

Usage

```liquid

{% form “register” %} {% endform %} ```

Property Value
Form Name register
Category Accounts

Fields

Field Name Description
password Password
email Email
firstname Firstname
lastname Lastname
phone Phone
campaign_ids Campaign Ids
company_name Company Name
billing_address_lines Billing Address Lines
billing_city Billing City
billing_state Billing State
billing_postal_code Billing Postal Code
billing_country Billing Country

Form Object

Inside the form block, you can access the form object which provides:

  • form.errors — Any validation errors after submission
  • form.fields — Array of form field objects, each with name, value, errors, and required?

Which fields are required

required? is false for phone, campaign_ids and company_name, and true for password, email, firstname and lastname.

The five billing address fields follow the store: they are required unless the store variable registration.address_required is set to false. See Make address optional when customers register.

Registration fields carry no HTML required attribute, so a theme that wants a required indicator reads required? on the field and renders it itself.

Was this article helpful?

Was this article helpful?