Multiple Location Preferences - Location Database | Community
Skip to main content
Level 2
January 30, 2025
Solved

Multiple Location Preferences - Location Database

  • January 30, 2025
  • 1 reply
  • 1107 views

Hello
We want to collect our customers preferences about locations they would like us to update them on (eg if there is a service outage).
This is a B2B example where a company may have many employees, so there may be multiple locations they need to be kept informed about.

Are there any third-party tools that help with collecting location?
I am thinking search autocomplete, where the person filling in the form starts typing the location and a small list that start with the same letters appears.

I have seen it used on websites for when customers are searching for something eg holidays.

Has anyone done this for forms? What tool did you use?

Thanks

Best answer by SanfordWhiteman

You don’t need an additional tool. You can use built-in HTML <datalist> and hook it up to the form, like so:

 

MktoForms2 :: <datalist> for input[type=text]

e=text

 

1 reply

SanfordWhiteman
Level 10
January 30, 2025

What do you mean by “collecting location” exactly? Do you want to autocomplete based from a list of all cities in the world, for example? Or a smaller list of locations that only has meaning to your business?

 

It’s incredibly simple to add autocomplete (a.k.a. typeahead) to a form field. That’s the easy part. The hard part is where the list of options to autocomplete comes from!

PennyHAuthor
Level 2
January 31, 2025

Hello Sanford

Thank you for replying. 

I need all cities and towns in the UK. I can get a list. But is that all I need? do I need an additional tool/app.....

Thanks

Penny 

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
January 31, 2025

You don’t need an additional tool. You can use built-in HTML <datalist> and hook it up to the form, like so:

 

MktoForms2 :: <datalist> for input[type=text]

e=text