Skip to main content
Guides Add Address Autocomplete to Your Forms

Add Address Autocomplete to Your Forms

Add unit-level Australian and New Zealand address autocomplete to any HTML form with one script tag and one function call. No build step, no framework dependency.

5 minutes Beginner
  1. 1

    Create a Checkify account and get your API key

    Sign up at checkify.com.au and create a public token (ck_pub_...) from your dashboard. Public tokens are safe to embed in frontend code — they're locked to your registered domain.

  2. 2

    Add the script tag to your page

    Include the Checkify autocomplete library before your closing </body> tag. Replace YOUR_PUBLIC_KEY with the token from step 1.

    HTML
    <script src="https://cdn.jsdelivr.net/npm/@checkify-api/autocomplete@latest/checkify-autocomplete.js?key=YOUR_PUBLIC_KEY"></script>
  3. 3

    Add address fields to your forms

    Add an input for the street address and separate fields for suburb, state, and postcode to any form — checkout, onboarding, contact, KYC/KYB verification, or shipping.

    HTML
    <input type="text" id="street" placeholder="Start typing an address...">
    <input type="text" id="suburb" placeholder="Suburb">
    <input type="text" id="state" placeholder="State">
    <input type="text" id="postcode" placeholder="Postcode">
  4. 4

    Initialise the widget with field mapping

    Call CheckifyAutocomplete.init() with your street input selector and a map of which fields to auto-fill when the user selects an address.

    JavaScript
    CheckifyAutocomplete.init('#street', {
      city:     '#suburb',
      state:    '#state',
      postcode: '#postcode',
    });
  5. 5

    Bonus: add suburb autocomplete

    Use CheckifyAutocomplete.initSuburb() to add a standalone suburb/postcode search. Same pattern — one call, automatic field mapping.

    JavaScript
    CheckifyAutocomplete.initSuburb('#suburb-search', {
      city:     '#suburb-name',
      state:    '#state',
      postcode: '#postcode',
    });
  6. 6

    Test it

    Open your page and start typing an Australian or New Zealand address in the street field. Suggestions appear as you type. Select one and the suburb, state, and postcode fields fill automatically. That's it — you're live.

Start validating in minutes

Free to try. No credit card required. Full API access from day one.