## Get value from an Address Element Validates and retrieves form values from an Address Element. If there are any input validation errors, the errors will display by their respective fields. `addressElement.getValue()` returns a promise. This promise will return an object with the following: * `complete`, `true` if the value is well-formed and potentially complete. The `complete` value can be used to progressively disclose the next parts of your form or to enable form submission. It is not an indicator of whether a customer is done with their input—it only indicates that the Element contains a potentially complete, well-formed value. In many cases the customer could still add further input. * `isNewAddress`, `true` if the Address Element is currently displaying the form collection view. * `value`, an object containing the current address information. The `firstName` and `lastName` properties only appear if the `display.name` option is set to `split`. The `phone` property only appears if the `fields.phone` option is set to `always`. **Syntax:** `element.getValue(...)` ### Get value from an Address Element ```js var addressElement = elements.getElement('address'); addressElement.getValue() .then(function(result) { if (result.complete) { // Allow user to proceed to the next step // Optionally, use value to store the address details } }) ``` ```es_next const addressElement = elements.getElement('address'); const {complete, value} = await addressElement.getValue(); if (complete) { // Allow user to proceed to the next step // Optionally store the address details with value } ```