WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Contact Form 7] Making required fields conditional (9 posts)

  1. thebookmistress
    Member
    Posted 4 years ago #

    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/

  2. thebookmistress
    Member
    Posted 4 years ago #

    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.

  3. andanet
    Member
    Posted 4 years ago #

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

  4. Eddie - Digital Marketing Consultant
    Member
    Posted 3 years ago #

    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.

  5. renato_s
    Member
    Posted 3 years ago #

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

  6. Eddie - Digital Marketing Consultant
    Member
    Posted 3 years ago #

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

  7. renato_s
    Member
    Posted 3 years ago #

    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.

  8. mrmcq
    Member
    Posted 3 years ago #

    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!

  9. mrmcq
    Member
    Posted 3 years ago #

    Actually..on second thought, this guy keeps posting the same message on almost every CF7 conditional implementation post. KILL THE SPAMMER!!

Topic Closed

This topic has been closed to new replies.

About this Topic