How to use Autocomplete selection to fill multiple address fields (address, city, state, etc.)?

How to use Autocomplete selection to fill multiple address fields (address, city, state, etc.)?

emtemt Posts: 46Questions: 10Answers: 0
edited June 2015 in Editor

I have an Editor form that has multiple address fields for businesses, i.e.

Contact
Business name
Address
Phone
Email

What I'd like to do is have it where if any of those fields have values typed into them, that field suggests possible businesses and if one of the listed businesses is clicked, the other nearby address fields are populated. Is this possible?

The fields are pulled from a MySQL database created by another Editor form.

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Sounds like you want an auto complete with a custom action. You could take a look at the jQuery UI AutoComplete plug-in for Editor and also their documentation - specifically the select event which you would then use to populate the other fields.

    Allan

This discussion has been closed.