## Get value from a Tax ID Element Validates and retrieves form values from a Tax ID Element. If there are any input validation errors, the errors are displayed by their associated fields. `taxIdElement.getValue()` returns a promise. This promise returns 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 doesn't indicate whether a customer is done with their input. Rather, it only indicates that the Element contains a potentially complete, well-formed value. In many cases, the customer can still add further input. * `empty`, `true` if both the business name and tax ID fields are empty. * `visible`, `true` if the Tax ID Element is visible based on the `visibility` option and country. * `value`, an object containing the current tax ID information. The `businessName` property may be `null` if not configured to be collected. **Syntax:** `element.getValue(...)` ### Get value from a Tax ID Element ```js var taxIdElement = elements.getElement('taxId'); taxIdElement.getValue() .then(function(result) { if (result.complete) { // Allow user to proceed to the next step // Optionally, use value to store the tax ID details } }) ``` ```es_next const taxIdElement = elements.getElement('taxId'); const {complete, value} = await taxIdElement.getValue(); if (complete) { // Allow user to proceed to the next step // Optionally store the tax ID details with value } ```