Jotform Integration Migration
This guide provides step-by-step instructions for migrating your Jotform address validation integration from GetAddress.io to Ideal Postcodes.
Migration Overview
Migrating your Jotform integration involves:
- Removing the GetAddress.io script reference
- Adding the Ideal Postcodes Address Finder script
- Updating the initialization code with correct field mappings
- Replacing your API key
Migration time: ~10 minutes
Side-by-Side Comparison
GetAddress.io Implementation
<!-- GetAddress.io approach -->
<script src="https://cdn.getaddress.io/scripts/getaddress-autocomplete-1.0.24.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
getAddress.autocomplete('input_3_addr_line1', 'YOUR_GETADDRESS_API_KEY', {
output_fields: {
formatted_address_1: 'input_3_addr_line2',
town_or_city: 'input_3_city',
county: 'input_3_state',
postcode: 'input_3_postal'
}
});
});
</script>
Ideal Postcodes Implementation
<!-- Ideal Postcodes approach -->
<script src="https://cdn.jsdelivr.net/npm/@ideal-postcodes/address-finder-bundled"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
IdealPostcodes.AddressFinder.watch({
apiKey: "YOUR_IDEAL_POSTCODES_API_KEY",
outputFields: {
line_1: "#input_3",
line_2: "#input_4",
line_3: "#input_5",
post_town: "#input_6",
postcode: "#input_7",
},
});
});
</script>
Key Differences
Aspect | GetAddress.io | Ideal Postcodes |
---|---|---|
Script Source | cdn.getaddress.io | cdn.jsdelivr.net (global CDN) |
Function Name | getAddress.autocomplete() | IdealPostcodes.AddressFinder.watch() |
Field Mapping | Uses Jotform's compound address field IDs | Uses individual Short Text field IDs |
Address Fields | formatted_address_1, town_or_city, county, postcode | line_1, line_2, line_3, post_town, postcode |
Selector Format | Direct field ID | CSS selector (#input_X ) |
Migration Steps
Step 1: Update Your Form Structure
If you're using Jotform's built-in Address element, you'll need to switch to individual Short Text fields for better control and PAF compliance.
Create these Short Text fields:
- Address Line One
- Address Line Two
- Address Line Three
- Post Town
- Postcode
Note the Field ID for each field in the Short Text Properties
panel (e.g., input_3
, input_4
, etc.).
Step 2: Remove GetAddress.io Script
Locate and delete the HTML block containing the GetAddress.io script:
<!-- DELETE THIS -->
<script src="https://cdn.getaddress.io/scripts/getaddress-autocomplete-1.0.24.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
getAddress.autocomplete(/* ... */);
});
</script>
Step 3: Add Ideal Postcodes Script
Add a new HTML block with the Ideal Postcodes Address Finder:
<script src="https://cdn.jsdelivr.net/npm/@ideal-postcodes/address-finder-bundled"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
IdealPostcodes.AddressFinder.watch({
apiKey: "ak_test", // Replace with your live API key
outputFields: {
line_1: "#input_3", // Update to match your Field IDs
line_2: "#input_4",
line_3: "#input_5",
post_town: "#input_6",
postcode: "#input_7",
},
});
});
</script>
Step 4: Update Field Mappings
Replace the Field IDs in outputFields
with your actual Field IDs:
Example mapping:
Field Name | GetAddress.io | Ideal Postcodes | Your Field ID |
---|---|---|---|
Address Line 1 | formatted_address_1 | line_1 | #input_3 |
Address Line 2 | N/A | line_2 | #input_4 |
Address Line 3 | N/A | line_3 | #input_5 |
Town/City | town_or_city | post_town | #input_6 |
Postcode | postcode | postcode | #input_7 |
If you need a county field, add it to the configuration:
outputFields: {
line_1: "#input_3",
line_2: "#input_4",
line_3: "#input_5",
post_town: "#input_6",
county: "#input_8", // Add county field
postcode: "#input_7",
}
Step 5: Replace Your API Key
- Create an Ideal Postcodes account (free test account available)
- Copy your API key from the dashboard
- Replace
"ak_test"
in theapiKey
field with your live API key
apiKey: "ak_live_YourActualAPIKey", // Replace this
Step 6: Test Your Form
- Preview your form in Jotform
- Start typing an address in the first address line field
- Verify that address suggestions appear
- Select an address and confirm all fields populate correctly
Additional Configuration Options
Ideal Postcodes Address Finder supports extensive customization. Common options include:
IdealPostcodes.AddressFinder.watch({
apiKey: "ak_live_YourKey",
outputFields: { /* ... */ },
// Optional configuration
injectStyle: true, // Apply default styling
checkKey: true, // Validate API key on load
placeholder: "Search address", // Custom placeholder text
// Callbacks
onAddressRetrieved: function(address) {
console.log("Address selected:", address);
}
});
For complete configuration options, see the Address Finder Plugin Documentation.
Benefits of Migration
✅ Legal Compliance - Migrate to the validated, IP-owning provider ✅ Broader Coverage - Access to complete PAF (Postcode Address File) data ✅ Better Structure - Separate address line fields for improved data quality ✅ Enhanced Reliability - Enterprise-grade infrastructure with 99.9% uptime SLA ✅ Superior Support - Live developer support via chat and email
Need Help?
Our support team is available to assist with your migration:
- Live Chat: Available on ideal-postcodes.co.uk
- Email: support@ideal-postcodes.co.uk
- Documentation: Full Jotform Integration Guide
Related Documentation
- Address Finder Plugin Documentation - Complete configuration reference
- Postcode Lookup Plugin - Alternative lookup-based integration
- PAF Data Documentation - Understanding UK address data