Skip to main content

Omit Company Name

In many countries including the UK, the organisation name will take presidence as the first line of an address if it is present.

Set removeOrganisation to true and include a target organisation_name in your outputFields. This will strip the address lines of the organisation but separately add the organisation to the input field you have designated with organisation_name.

Note that addresses which only have an organisation name as a premise identifier will not have the name stripped.

 
PostcodeLookup.setup({
apiKey: "ak_test",
context: "#lookup_field",
removeOrganisation: true,
outputFields: {
organisation_name: "#organisation"
line_1: "#first_line",
line_2: "#second_line",
line_3: "#third_line",
post_town: "#post_town",
postcode: "#postcode"
}
});

Live Demo

Loading...