Skip to main content

Multi-page Form

You can have the user enter their postcode and open the address form in a new page by saving the user's input in localStorage.

const pl = PostcodeLookup.setup({
onLoaded: () => {
pl.input.value = localStorage.getItem("postcode");;

This simulates a user entering a postcode when the Postcode Lookup API is initialised.