Contact Form 7 – Conditional Fields, multiple state-fields, empty result
-
My problem is, that I am having 3 different drop-downs for the “state”-field.
All states of India, USA and Brazil. Dependend on the selection of “Country” a dropdown for “State” is shown.Since I am having 5 times a state-field in the email-section of contact-form 7. Its not parsing, respectively delivering an empty field in the email received. It’s working if I name the state-fields differently, but then I will have 3 (dependent on the number of state-fields) different state-columns in my database. I only would like to have ONE state-field in my database.
Any Idea? Help is much appreciated, Thank you!!
The logic:
show [group-States-empty] if [Country] equals "" show [group-States-random] if [Country] not equals "" and if [Country] not equals "Brazil" and if [Country] not equals "USA" and if [Country] not equals "India" show [group-State-Brazil] if [Country] equals "Brazil" show [group-State-India] if [Country] equals "India" show [group-States-US] if [Country] equals "USA"
This sequence results in an empty field “State”.
Sequence in Email:
[group-States-US][State][/group-States-US] [group-State-India][State][/group-State-India] [group-State-Brazil][State][/group-State-Brazil] [group-States-empty][State][/group-States-empty] [group-States-random][State][/group-States-random]
~~~~~~~
This also results in empty fields
[group] [group-States-US][State][/group-States-US] [group-State-India][State][/group-State-India] [group-State-Brazil][State][/group-State-Brazil] [group-States-empty][State][/group-States-empty] [group-States-random][State][/group-States-random] [/group]
The page I need help with: [log in to see the link]
- The topic ‘Contact Form 7 – Conditional Fields, multiple state-fields, empty result’ is closed to new replies.