Contact Form 7
Conditional Validation with jQuery? (2 posts)

  1. Casey Picker
    Posted 5 years ago #

    I was hoping to be able to do something like this to make another field required based on a drop-down value:

    	if($('select.previous').get(0).selectedIndex == 1) {
    	} else {

    The class is getting added, but CF7 isn't able to recognize it as required. Is this possible with jQuery?

  2. Casey Picker
    Posted 5 years ago #

    Has anyone else had any luck making a field required based on another field's drop-down value?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic