Create a County Field¶
Overview¶
Address verification can return the county an address falls in. This is most often used in the United States, where county is needed for sales tax calculation and territory assignment, but county data is returned for other countries too.
The field is optional. Create it if you want the county saved on your records.
Note: The address blocks supplied out of the box already include a county field. Follow this guide when you are configuring an address block of your own.
Step 1: Create the Field¶
- Navigate to Setup > Object Manager.
- Select the object, then go to Fields & Relationships.
- Click New.
- Choose Text as the data type and click Next.
- Enter a Field Label naming the address it belongs to, for example
Billing County. - Set Length to
255. - Click Next.
- Provide visibility to all the users who will be verifying addresses, then click Next.
- Add the field to the page layouts where you want the county visible, then click Save.
Step 2: Map it on the Address Block¶
- Click the App Launcher to search for and select AddressTools Administration.
- Select Address Blocks from the left menu.
- Open the block for this address by using the dropdown to select Edit.
- In the Additional Address Fields section, set County Field to the field you just created.
- Click Save.
When the County Is Written¶
County is returned with the rest of the address fields, so it is populated when verification returns a status of Verified or Parsed but not found. If verification cannot match the address, the county field is left as it was. You can manually edit this field yourself and re-verifying a different address will overwrite it automatically.
The county field is populated by address verification, so to fully enable this follow the setup steps in Verification.