{"title":"Set Default Address Form - Liquid Form Reference","slug":"set-default-address-form-reference","url":"https://support.storeconnect.com/articles/set-default-address-form-reference","url_markdown":"https://support.storeconnect.com/articles/set-default-address-form-reference.md","subtitle":null,"summary":"The `set-default-address` Liquid form marks an address book entry as the signed-in customer\u0026#39;s default shipping or billing address.","type":"Developer_Documentation","video_url":"","keywords":"liquid, forms, set-default-address, address book, default shipping, default billing, accounts, storeconnect, remote, data-success","last_modified":"2026-11-03T22:15:07+0000","body_markdown":"## Usage\n\n\n```liquid\n\n{% for address in current_customer.addresses %}\n  {% unless address.is_default_shipping? %}\n    {% form \"set-default-address\", address: address, type: \"shipping\", data-success: \"sc.address-book.changed\", data-type: \"json\", remote: true %}\n      \u003cbutton type=\"submit\"\u003eMake default shipping\u003c/button\u003e\n    {% endform %}\n  {% endunless %}\n{% endfor %}\n```\n\n\nThe `set-default-address` form marks one address book entry as the signed-in customer's default shipping or billing address. Setting a default clears the flag from whichever entry held it, so a customer always has at most one of each.\n\n| Property | Value |\n|----------|-------|\n| **Form Name** | `set-default-address` |\n| **Category** | Accounts |\n\n## Parameters\n\n| Parameter | Required | Description |\n|-----------|----------|-------------|\n| `address` | Yes | The [CustomerAddress](customer-address-liquid-object-reference) entry to mark |\n| `type` | Yes | Either `shipping` or `billing`. With any other value, the form renders nothing. |\n\nAny other tag option is passed through as an HTML attribute on the `\u003cform\u003e` element.\n\nPair it with `remote: true` and a `data-success` event so a reloadable `{% component %}` can refresh the list in place.\n\n## There is no way to clear a default\n\nThe form only sets a default. To change a default, set a different entry as the default. Clearing a default directly is not supported.\n\nShipping and billing are independent, and one entry may hold both.\n\n## Form Object\n\nInside the form block, you can access the `form` object which provides:\n\n- `form.errors` — Any validation errors after submission"}