Autocomplete and Dr...
 
Notifications
Clear all

Autocomplete and Dropdown for cities

17 Posts
5 Users
4 Reactions
390 Views
 Lost
(@lost)
Posts: 11
Active Member
Topic starter
 

Hi guys, i would like to take advantage of your kindness here and ask the following:

If i select Autocomplete for locations, users write whatever they want, since no check is done (if the location/state/city exist). So i do not want that.

I want the State (Regions) to be Dropdown but the cities to be autocomplete or empty and not required.

So far, i have found no solution and the code is complicated for me to change.

Any help is much appreciated.

 
Posted : January 3, 2022 22:12
Editor
(@editor)
Posts: 553
Honorable Member Admin
 

Reasonable question. But as i have posted before, we are not developers here so we can't help.

I wish we could.

 
Posted : January 3, 2022 22:32
Alessandro Cagliostro
(@alessandro-cagliostro)
Posts: 212
Reputable Member
 

The thing with what you ask, is that Dropdown or Autocomplete is general for Locations all-together.

I don't think there is an easy way to separate that for a non-developer.

 
Posted : January 4, 2022 00:58
Editor
(@editor)
Posts: 553
Honorable Member Admin
 
Posted by: @alessandro-cagliostro

The thing with what you ask, is that Dropdown or Autocomplete is general for Locations all-together.

I don't think there is an easy way to separate that for a non-developer.

The thing is the whole country/region/location/city is poorly designed, mainly for LOCAL classifieds.

If a poster want to TARGET an area/region/country, the logic is very bad.

For example you can select a Country like US for example and the rest of fields (region/state/city) you can write whatever you want. Like US, Paris as City and then as area India. No checks, nothing.

Poor design, very poor. Not to mention the Multi-Country design. A mess, a total mess.

 

 
Posted : January 4, 2022 01:45
(@tango)
Posts: 58
Trusted Member
 

I tried to post a solution to your issue, but this wonderful forum doesn't let me. Returns an error (probably the text is too rich and long)...

So I've made a screenshot with my reply.

Hope it helps.

= Osclass Enterprise =

 
Posted : January 5, 2022 05:41
 Lost
(@lost)
Posts: 11
Active Member
Topic starter
 

@tango Thank you.

But i'm do not want to completely disable cities. Just be able to control autocomplete or dropdown.

Cities are important to me.

 
Posted : January 5, 2022 16:52
(@tango)
Posts: 58
Trusted Member
 
Posted by: @lost

I want the State (Regions) to be Dropdown but the cities to be autocomplete or empty and not required.

First of all, it's not required to enter any location information. You can post a listing without setting a location.

Secondly, what's the purpose of having cities "autocomplete or empty" ?

I don't understand your question.

So you want the Region to be dropdown, but the city just an empty field where the user can write anything or nothing at all?

Why not keep the city as a dropdown also?

Is it a problem with the city not being available in database - dropdown list?

= Osclass Enterprise =

 
Posted : January 5, 2022 17:47
Page 1 / 3