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.)?
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.
This discussion has been closed.
Answers
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