Update Address Element
Update an Address Element
Last verified 2026-09-24
Is this helpful?
element.update(options: object) Updates the options the Address Element was initialized with. Updates are merged into the existing configuration. - options Options for updating the Address Element. - fields By default, the Address Element will collect all the necessary information needed for an address. In some cases, it might be necessary to collect other types of information. You can specify other types of fields to render in the form with this option. - phone Specify always to enable phone number collection in the Address Element. Only collect phone numbers if you need them for the transaction. Default is auto. - validation By default, the Address Element will enforce preset validation for each field. You can customize the settings by using this option. - phone - required Specify always to make phone number a required field. The fields.phone option must be set to always if this property is specified. Default is auto. ### Example title Update an Address Element Is this helpful?