Title: If Statement
Last modified: August 21, 2016

---

# If Statement

 *  [inoskit](https://wordpress.org/support/users/inoskit/)
 * (@inoskit)
 * [13 years ago](https://wordpress.org/support/topic/if-statement-5/)
 * I need to create a “select” type field with some options and when one option 
   is selected, another “select” type field shows up (or its populated) with values
   that are only displayed with that first option were selected.
 * Example:
 * “Select 1” has Shoes and T-Shirts as values
 * If Shoes is selected, “Select 2” is populated with values 9, 10 and 11
 * If T-shirts is selected, “Select 2” is populated with values white, black and
   blue
 * How can I do that on Contact Form 7
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

Viewing 1 replies (of 1 total)

 *  [biswajeet](https://wordpress.org/support/users/biswajeet/)
 * (@biswajeet)
 * [13 years ago](https://wordpress.org/support/topic/if-statement-5/#post-3673694)
 * You need to do that outside CF7 by parsing and regenerating the form through 
   custom jquery programming. This way you can create field dependency as well multi
   step form submission. Currently cf7 core doesn’t have these features right out
   of box!

Viewing 1 replies (of 1 total)

The topic ‘If Statement’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [biswajeet](https://wordpress.org/support/users/biswajeet/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/if-statement-5/#post-3673694)
 * Status: not resolved