Jquery Validation For Contact Form 7
Validate Visible Fields Only (4 posts)

  1. fcvolunteer
    Posted 3 years ago #

    I have some hidden fields that are shown only based on the user's choices when filling out the form (using radio buttons). I would like to make some of these hidden fields required but obviously only when they are visible. That's slightly beyond my learning curve and was wondering if anyone has done this and whether they can point me in the right direction.

    I'm pretty sure I need to use the :visible selector I'm just not sure what the rest of the script should be :-/. Pardon my ignorance when it comes to javascript and jquery.

    You can see a sample form here:http://www.friendshipcirclenc.org/show-hide-test/

    Thanks in advance!


  2. turkeyphant
    Posted 3 years ago #

    Did you ever manage to work this out?

  3. fcvolunteer
    Posted 3 years ago #

    No, still in the process, I can post the solution once I have one. Any ideas? :-)

  4. fcvolunteer
    Posted 3 years ago #

    With some help I've figured out the validation script but I'm having trouble making appropriate changes to the php code to allow certain field ids to be empty if the value is equal to 0 and then check for that and then validate the fields.

    Any ideas?


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic