WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Contact Form 7] Making required fields conditional

[Plugin: Contact Form 7] Making required fields conditional

  • thebookmistress

    @thebookmistress

    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/

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

    @thebookmistress

    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

    @andanet

    Hi all. Please thebookmistress can you insert tag code for this workaround?
    Thanks a lot.

    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 using a GPL licensed plugin.

    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).

    Didnt see that renato! I guess I meant GPL software that is not distributed for a fee…

    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

    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.

    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!

    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.
Skip to toolbar