BP Profile Search Forum › City country conditional dropdown
November 29, 2021 20:22 GMT #11581RobertoGuest
I use Kleo theme, and I have 2 dropdowns in my registration form: Country and State:
I was able to populate countries and spanish cities with this:
I have spent quite days trying to understand how to show spanish cities only when Spain is selected as country, and don’t show cities if another country is selected. We plan to include Portugal cities in the future, so this behaviour should work with any Country, only showing the cities of the selected country.
I saw some documentation about select2, but I don’t know if it is related with this issue.
I would be very happy if you could help me, it is my last option to find a way.
Thank you in advance!!November 30, 2021 13:39 GMT #11583andreaPlugin Author
“show/hide form fields based on selected option”
will provide many useful examples.December 2, 2021 17:31 GMT #11600RobertoGuest
Thank you for your answer, I will come back here to share the solution once I reach it.