Hi, thank you for your reply, I really appreciate it ??
I was hoping that there was a dropdown solution for cities the same way there is one for countries. I have come across websites that implement something like a nested way of showing this: first a user selects a country from dropdown and then a second dropdown appears with city options related to that specific country.
Another possible solution could have been to have a dropdown for cities that list only the cities that members on the website have entered while filling out their profile page (BuddyBoss). This would be a selective pre-populated kind of solution.
To answer your question: I have tried several ways to implement a profile field where members enter their city so that the city can then be searched in BP search form:
1; create own dropdown (and populate the dropdown with city options which is far from optimal as you would need to enter hundreds of cities manually).
2;use a simple single line text field (member needs to enter city manually)
3.geolocation field (which unnecessarily mentions state and country, as I already have acountry field)
Unfortunately, the fields do not all work with one another (interdependency). For example, If I use geolocation in the profile registration (so city, state and country are given) but want a country dropdown in the search form, the country dropdown does not find the user. The only way to find the user is to use a “any type field” where a user would have to manually start typing the country name. So, the only way to search for city is by having a user manually enter the city name.
Using geolocation for both profile page and search form can become quite costly (depending on bots and number of users).
Long story short, I was hoping there to be a more straightforward dropdown solution, to have a more user-friendly and faster way for users to search for other users by city. Best case scenario, I could have a dropdown for cities that show only the cities that users have entered in their profiles.
That would be really awesome ??