Title: Hiding Dropdown Fields
Last modified: February 11, 2019

---

# Hiding Dropdown Fields

 *  Resolved [moliver27](https://wordpress.org/support/users/moliver27/)
 * (@moliver27)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/)
 * I’d like to hide a field based on the selection of separate field.
    Basically,
   I’d like to only display the “State” dropdown if United States is selected from
   the “Country” dropdown.
 * I have downloaded and installed Contact Form 7 Conditional Fields but I’m having
   difficulty with the coding and setting the conditional fields.
 * Here is a link to a screenshot: [screenshot](https://i.stack.imgur.com/AAvcR.png)
 * Or do I have to download the Modules plug-in and hide the fields in the email?
   Our forms are getting hung up transferring to Salesforce because the “State” 
   field isn’t selected if the “Country” field is selected.
 * Thank You!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhiding-dropdown-fields-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/#post-11232241)
 * I’m not quite clear on your question. Do you need help hiding the State field
   until United States is selected in the Country dropdown?
 *  Thread Starter [moliver27](https://wordpress.org/support/users/moliver27/)
 * (@moliver27)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/#post-11232372)
 * Thank you for your response!
 * I’d like to hide the state field if the selected country is NOT the United States.
 * People our filling out the contact form and selecting a random state if they’re
   from a country outside of the United States. Our leads in Salesforce are getting
   rejected because the fields align.
 * I hope that makes sense? Thanks!!
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/#post-11250205)
 * This is pretty basic. Are you just asking if it’s possible? Cause if that is 
   your question, then my answer is “yes it’s possible.” Did you check out the tutorial?
   
   [https://conditional-fields-cf7.bdwm.be/conditional-fields-for-contact-form-7-tutorial/](https://conditional-fields-cf7.bdwm.be/conditional-fields-for-contact-form-7-tutorial/)
    -  This reply was modified 7 years, 3 months ago by [Jules Colle](https://wordpress.org/support/users/jules-colle/).
 *  Thread Starter [moliver27](https://wordpress.org/support/users/moliver27/)
 * (@moliver27)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/#post-11251526)
 * I did use the tutorial with not much luck. Unfortunately, I deleted what I had
   or I’d send it over to you.
 * I guess I’ll give it another shot. Thanks,
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/#post-11253878)
 * good luck! It’s really much simpler than you think imo. All you would need it
   so wrap the state field in a group and than add a condition like this:
 * show group if country equals Unites Stated
 *  Thread Starter [moliver27](https://wordpress.org/support/users/moliver27/)
 * (@moliver27)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/#post-11259175)
 * Thanks. I’m still having some trouble: [screenshot](https://www.willburt.com/wp-content/uploads/Untitled-1-4.jpg)
 * I believe I have the grouping correct. Should the text string be coded differently?[
   group group-200 clear_on_hide]
 * Any thoughts?
 * Thanks!
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/#post-11269223)
 * Just put United States instead of United States|US

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Hiding Dropdown Fields’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/hiding-dropdown-fields-2/#post-11269223)
 * Status: resolved