![](/img/icons/integrations/jetformbuilder.svg)

# JetFormbuilder

## Demo

![Activate Address Lookup on your address collection forms-screenshot](/img/jetformbuilder-demo.gif)

## Installation

This integration works by adding our Address Validation tools using JetFormbuilder's form editor. Below are the instructions to add Address Lookup.

### Create Address Inputs

Add address input fields to your form. A basic address form to capture a correct US address should have the following fields:

* Street Line One
* Street Line Two
* City
* State
* ZIP Code

![Create address fields-screenshot](/img/jetformbuilder-1.png)

You can optionally include additional fields, which are documented in the [address API documentation](/docs/api/find-address.md).

### Add Address Lookup

#### Install and initialize Plugin

Add an `HTML block` and include two script tags at the bottom of your form to load the plugin and then to initialize it.

```html
<script 
src="https://cdn.jsdelivr.net/npm/@addresszen/address-lookup"></script>

<script>
  AddressZen.AddressLookup.setup({
    apiKey: 'YOUR_API_KEY',
    outputFields: {
      line_1: 'input[name="line_1"]',
      line_2: 'input[name="line_2"]',
      city: 'input[name="city"]',
      state: 'input[name="state"]',
      zip_plus_4_code: 'input[name="zipcode"]'
    },
    onLoaded: function () {
      // This prevents the Address Lookup from being obscured by the default
      // JetFormbuilder styles
      this.view.container.parentElement.parentElement.style.overflow = 'visible';
    }
  });
</script>
```

caution

Take special care to:

1. Insert your API Key in the `apiKey` field
2. Match the names of your target fields to the JetFormbuilder `Form field name`. If your Street Line One has the `Form field name` `line_1`, ensure that `line_1` reads `'input[name="line_1"]'`
3. Ensure `inputField` points to the same field as `line_1` to have the Address Lookup appear there

## Configuration

See our [Address Lookup Plugin Documentation](/docs/address-lookup.md) if you wish to customize Address Lookup.

info

If you need support, you can reach out to us on our [support page](https://addresszen.com/support).
