- Who should use this guide?
- Adding address, phone and email validation to your site
- Mapping your fields
- Accessing field settings
- Field types available
- Reactivating setup
- Basic settings
- Service control
- Advanced customisation
Who should use this guide?
If you already have a form on your website and wish to add address, phone or email validation this guide will get you up and running as quickly as possible. We have made integrating our services as simple as possible, with the majority of the process guiding you through step by step. You are not expected to have any technical expertise, but a basic understanding of HTML would be an advantage.
For more advanced, customised installations, please see our API pages:
Adding the PCA Tag to your site
To get started, log into your PCA Predict account, select “New Service” from the left-hand menu and then click the “Set Up” button under Address, Email and Mobile Phone Validation.
Once you have finished editing the page, save and upload the new file to your servers and click the "Launch Setup" button on the setup screen.
- The setup process will now open your site using the URL provided earlier. The Tag setup will map the fields automatically.
Mapping your fields
When your site loads, you should browse to the page containing your form. Any address, email and phone fields will automatically be detected and mapped to our services.
Try finding an address by simply typing any part of the address within your form field, a list of valid address should display below, matching as you type – like the example below. The more you type, the more accurate the results will become. Once you find the address you wanted, simply click it and the rest of your address fields should autofill.
Try finding an address by simply typing any part of the address within the search box. the address validation will return a selection of relevant address, matching as you type. The more information you enter, the more accurate the results will become. Once you have found the address you were searching for, simply click it and the address validation will populate all of your address fields for you.
If everything works as you expect it to, you can press the "save" button at the bottom of the setup window on the right hand side.
- If your fields aren’t quite mapping properly, or you want to customise any field settings, read the next section of this guide - Field types.
- If everything works as you expect it to, you can press the "save" button at the bottom of the setup window on the right hand side.
- Your address validation setup is now complete. All that is left to do is give your installation a name so you can reference it in the future. Then, if there are any more places you would like to install a service you can click the "Add another" drop down menu and select a service.
Remember: if at any point you get stuck or have questions regarding our products or setup process, please contact our support team or chat with us live from the setup screen.
The on-screen setup tool is capable of altering which form fields the service uses and how it interacts with your website. There are plenty of fine grain controls to perform most customisations. For anything more complicated, you can call our support team who should be able to help you figure out a solution.
Accessing field settings
When the Tag is initially installed on a page it automatically detects the fields it could be installed into. If you would like to customise this mapping, or indeed if the mapping doesn't work, you can click on the "configure" button on the right hand side for the relevant service.
- Address validation will automatically detect your address fields and color codes them, e.g. Shipping address and a Billing address. The settings for the corresponding fields will display the same colour on the right hand side. If all your address fields are not detected correctly, you can choose the right fields manually.
If you’ve named your field names or ids conventionally (i.e. Line1, Line2, City, etc) the address validation service will try and match the correct field types to the relevant address fields on your form.
- To match a new field to a field type, click “Add a new field”. Now you can either manually choose your own field by name/id from the dropdown list under the “Your Fields” column, or you can click the selection button and then click the field on your form that you would like to use.
Once you've selected the form field you want to put address validation on, you will need to pick a field type from the adjacent dropdown list under the “Our Fields” column. Field types correspond to a specific address component (i.e. Line1, Line2, City, etc). You can find out specific details regarding each of the types available in the Field types available section of this guide.
If you need to remove any fields, click the bin icon on the right hand side: next to the unwanted field.
To the right of each fieldset is a button to access additional settings for that field: . There are 4 settings to choose from and you can mix and match them as you please. These settings are:
- Search - Turns the field into a search bar, showing the returned address results when a user starts typing their address into the field.
- Populate - Populates the field with the relevant data after an address is selected.
- Preserve - Once populated, the field is not changed by the address validation again. This can be useful if you need to manually make a change and make it persist on the form.
- Country - Turns the field into a country dropdown list.
- When you are happy with your setup, click “Done” and then try searching for an address. If you are happy with the results, click the “Save” button at the bottom of the setup menu to save all changes.
At this point, the address validation will be Live and running on your website with all of the settings you have chosen. For added security, we advise you to look at the service settings on your account. You can find out the benefits of doing so in the Settings section of this guide.
Field types available
Below is a table of the most commonly used address fields available for address validation:
|Line1-5||The specific line number of the returned address|
|Town||The Town of the returned address|
|County||The County of the returned address|
|Postcode||The Postcode of the returned address|
|Country||The ISO 3166 Country name for the returned address|
|Company||Returns the full company name where registered|
|Search Input||Search bar where all the address validation magic happens|
|Building Name||Name of the building for the returned address|
|Building Number||Number of the building for the returned address|
|Sub Building||The Flat or Unit number within the building. i.e. Flat 1|
|Street||The Street Name of the returned address|
|District||The locality within the Town or City|
|County Name||The name of the County, Province or State, i.e. California|
|County Code||The code of the County, Province or State, i.e. CA|
|2-Character ISO Code||The ISO 3166 2-character Country Code for the returned address, i.e. GB|
|3-Character ISO Code||The ISO 3166 3-character Country Code for the returned address, i.e. GBR|
|Formatted Address||The FULL address in the correct standardised format|
Whilst these fields will be enough for the majority of use cases, there is still plenty of scope to use many additional fields and formats.
If at any point you need to change the way a service is set up on a form, you can reactivate the setup process with the following steps.
- Log into your account, select "All Services" and click on the relevant address validation installation.
- You should now be presented with the setup options for your address validation installation. Select the "On Page Setup" tab.
Click on "Activate setup" to start the setup process again. You will be taken back through the setup process for mapping your address fields.
Within your PCA Predict account, you can change your service settings and take further control over your usage. These settings break down into three main categories: Basic Settings, Security, and Control. The next sections of this guide will focus on each of the categories and walk you through how to make the most of the choices available to you.
NOTE: If you make any changes, you will need to click the “Save” button for those changes to take effect.
Basic settings / Overview
The basic settings tab (labeled just as "Overview") gives you the below options to adjust accordingly.
- Name - This allows you to customise the name of the key selected. This is primarily to help you identify your own keys more easily. This can be particularly useful if you are using more than one key under one account.
- Internal use - Are you using the service internally, e.g. for your CRM or office systems, (not on a public website).
- Unlimited use - By selecting “Yes” you will be allowing an unlimited number of lookups for this key. This should be fine if your account is well funded and you expect a high rate of traffic. For smaller accounts and tighter cash flow control, you can select “No” and specify the cost of lookups to cap spending for each day.
- Daily limit - Only visible when “Unlimited use” is set to “No”. Here you specify the daily amount to cap your spending at. Customers will still be able to fill in the rest of the form as normal, they just won’t have the validation experience which might impact your form completion rate.
The security tab helps you maintain control over who can use your keys, which of your websites the service requests should be made from, and place limits on the number of requests made by individual IP addresses. We strongly recommend that you complete these settings.
These settings can be used as follows:
- Internal Use - Flags whether the service is being used by users of a public website, or members of staff inside a company.
- Unlimited use - To set a daily spend limit on the installation, set this to "No", otherwise there will be no restriction on daily spend.
- Daily Limit - The maximum spend level allowed on this installation per day. Set this to a sensible level that you do not want to go over and that won't affect expected daily usage.
The security tab helps you maintain control over who can use your keys, which of your websites service requests should be made from, and place limits on the number of requests made by individual IP addresses. We strongly recommend that you complete these settings.
These settings can be used as follows:
- Valid URLs - To help prevent fraudulent or accidental use of one of your keys across domains, simply add the URLs that you expect the address validation requests to be coming from. However, you will also need to specify any subdomains and combinations of URLs that might be used. i.e. http://www.mysite.co.uk, http://www.mysite.com, http://mysite.co.uk, etc.
- Valid IPs - To restrict address validation requests to specific IP addresses, simply enter the external IP address of the machine in question and click “Add”. This is mostly useful if you need to restrict keys for your own office or individual teams. DO NOT set this if address validation is available on a public website form.
- IP Limiter - Similar to the “Daily Limit” under basic Settings, The IP Limiter allows you to place request limits against a group of IP addresses. This should help manage your cashflow and cap individual usage. To make use of the setting select “Yes”. Enter the IP address you wish to limit in the “Limiter Exclusions” box and then click “Add”. You can add as many IP addresses as you like. Next set the limit as the maximum number of daily requests you wish the group of IPs to be able to make. Any valid IPs not included within the limited group will not be affected by the request limits.
Address validation control
The control settings help you manage the localisation of your forms. Under the Control tab you can control country settings and default languages. These settings are explained below.
- Available countries - To limit which countries are available to customers using the form, select the country(s) you want lookups to be available for and click the “>” button to add it to the “Selected List”. NOTE: The order in which they appear within this list will be the same order they will appear on the address validation form. Countries can also be removed from the list using the “<” button.
- Default country - By default address validation will try and determine which country your customer is connecting from by looking up their IP address. You can override this and force any country of your choice by selecting one from the dropdown list. This may be useful if you expect the majority of your customers come from one country.
- Language - Address validation results can be returned in a variety of languages that use Roman characters. Whilst the default setting is to match the user’s browser settings, you can specify an overriding language to use by selecting one from the dropdown list. Currently, address validation can support the following languages: Dutch, English (UK), English (Canada), English (US), French, German, Hungarian, Italian and Spanish.
Phone validation control
Email validation control
If you call any custom methods or listen to events, you will need to include this snippet in your page to get a reference to the control objects as they load. A full reference can be found in the documentation.
If address validation is not loading at the correct time, you can include this snippet in your page (directly below your address fields).
For further information or help with any questions you may have about address validation, contact our dedicated support team who will be more than happy to help.
Can't find what you're looking for?