Title: [Plugin: Contact Form 7] Making required fields conditional
Last modified: August 19, 2016

---

# [Plugin: Contact Form 7] Making required fields conditional

 *  [thebookmistress](https://wordpress.org/support/users/thebookmistress/)
 * (@thebookmistress)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/)
 * I have two issues in my form that I would like to solve using conditions. If 
   anyone has suggestions, that would be great!
 * Issue one: My form asks for a home phone and a work phone. I would like to make
   one of them required, so that if both are blank they get an error message. If
   either one is filled in, then there is no error.
 * Issue two: If the user selects an option from a drop-down menu (send tribute 
   card) then a whole set of fields are required. But if any other option is chosen
   from the drop-down menu, then those fields are not required.
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

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

 *  Thread Starter [thebookmistress](https://wordpress.org/support/users/thebookmistress/)
 * (@thebookmistress)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276047)
 * I’ve worked around issue one. Still need help with issue two:
 * If the user selects an option from a drop-down menu (send tribute card) then 
   a whole set of fields are required (address to send card to). But if any other
   option is chosen from the drop-down menu, then those fields are not required.
 *  [andanet](https://wordpress.org/support/users/andanet/)
 * (@andanet)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276209)
 * Hi all. Please thebookmistress can you insert tag code for this workaround?
    
   Thanks a lot.
 *  [crashnet](https://wordpress.org/support/users/crashnet/)
 * (@crashnet)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276291)
 * Doesnt look like it is possible with Contact Form 7. I am looking for ANY plugin
   that will do it, besides the non GPL _Gravity Forms_
 * Here is a thread about [conditional form fields](http://wordpress.org/support/topic/conditional-form-fields-with-gpl-license-plugin)
   using a GPL licensed plugin.
 *  [renato_s](https://wordpress.org/support/users/renato_s/)
 * (@renato_s)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276292)
 * hi, crashnet!
    The plugin page says it’s GPL:
 * > 1. Plugin Licensing
   > Gravity Forms PHP is licensed under the GNU general public license ([http://www.gnu.org/licenses/gpl.html](http://www.gnu.org/licenses/gpl.html)).
 *  [crashnet](https://wordpress.org/support/users/crashnet/)
 * (@crashnet)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276293)
 * Didnt see that renato! I guess I meant GPL software that is not distributed for
   a fee…
 *  [renato_s](https://wordpress.org/support/users/renato_s/)
 * (@renato_s)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276299)
 * Since it is GPL I think it’s not inappropriate to share a torrent link (moderators,
   please delete this post if I’m wrong):
    [http://thepiratebay.org/torrent/5781606/Gravity_Forms_1.3.13.1](http://thepiratebay.org/torrent/5781606/Gravity_Forms_1.3.13.1)
 * The disclaimer says:
 * > Copyright 2009 rocketgenius
   > This program is free software; you can redistribute it and/or modify
   >  it under
   > the terms of the GNU General Public License as published by the Free Software
   > Foundation; either version 2 of the License, or (at your option) any later 
   > version.
   > This program is distributed in the hope that it will be useful,
   >  but WITHOUT
   > ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   > FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *  [mrmcq](https://wordpress.org/support/users/mrmcq/)
 * (@mrmcq)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276310)
 * I find it more worth it to answer the original question than to give two farts
   to the wind about torrent links.
 * I’d like to know if or when Contact Form 7 will include CONDITIONAL form fields…
   I mean, yeah, its nice, bc without conditional functionality…why wouldn’t I just
   make my own? Now there’s an idea!
 *  [mrmcq](https://wordpress.org/support/users/mrmcq/)
 * (@mrmcq)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276311)
 * Actually..on second thought, this guy keeps posting the same message on almost
   every CF7 conditional implementation post. KILL THE SPAMMER!!

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

The topic ‘[Plugin: Contact Form 7] Making required fields conditional’ is closed
to new replies.

 * 8 replies
 * 5 participants
 * Last reply from: [mrmcq](https://wordpress.org/support/users/mrmcq/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-making-required-fields-conditional/#post-1276311)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
