Forums

2 dropdown (the 2nd changes according to the 1st choice) with 8000 entries

damconsulting 18 Mar, 2021
Hi, I'm in the need to add at my CF6 form the possibility to indicate STATE and CITY.
I'd like to have a first dropdown with STATES list (110 options) and a second dropdown with CITIES that change according to the choice in the first dropdown.
Cities list contains 8000 entries.

I have found the demo form (number 6) with the 2 dropdown that should works as I'd need.
But using this and populate all choices by hand is quite a monster_job.

Any idea for a smart work?
Thank you.
DM
GreyHead 19 Mar, 2021
Hi DM,

I suggest that you add the state and cities lists to a database table - if you haven't already got a list you can find them on-line.

Then please see this CFv5 FAQ for the method to use - you will need to update this to use the CFv6 names and syntax.

Bob
You need to login to be able to post a reply.