Conditional field – Dropdown menu – Same entry
-
Hi, I’m developing a contact form to collect some users information. I wish do the part of State and City with Conditional Fields.
I made the drop-down menu for all the 26 States (Estado in Portuguese)
<label> Estado*
[select* Estado “Acre” “Alagoas” “Amapá” “Amazonas” “Bahia” “Ceará” “Distrito Federal” “Espírito Santo” “Goiás” “Maranhão” “Mato Grosso” “Mato Grosso do Sul” “Minas Gerais” “Pará” “Paraíba” “Paraná” “Pernambuco” “Piauí” “Rio de Janeiro” “Rio Grande do Norte” “Rio Grande do Sul” “Rondônia” “Roraima” “Santa Catarina” “São Paulo” “Sergipe” “Tocantins”] </label><label> Cidade* </label> (Cidade is city in portuguese)
[group Acre]
[select* Cidade “Acrelândia” “Assis Brasil” “Brasileia”]
[/group][group Alagoas]
[select* Cidade “Água Branca” “Anadia” “Arapiraca”]
[/group]This is only a part of the code. I made the 26 groups with all the cities of each one.
I used the same entry “Cidade” for all the groups. The form works perfectly but the city information is being storaged wrong. It always takes the first entry of the last group, it doens’t matter which state or city I choose. How do I fix this issue if I need only one entry for City(in my case Cidade)? If not I will create 26 different entries for Cities and it doesn’t look to me the right way for a form.
Thank you.
The page I need help with: [log in to see the link]
The topic ‘Conditional field – Dropdown menu – Same entry’ is closed to new replies.