Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Conditional Fields for Contact Form 7

Adds conditional logic to Contact Form 7.

This plugin adds conditional logic to Contact Form 7.

If you edit your CF7 form, you will see an additional tag called "Conditional fields Group". Everything you put between the start and end tag will be hidden by default. After you added the field group(s), you should click Save. Then you should go to the "Conditional fields" tab to create one or more conditions that will make the group(s) appear.

How to use it

A detailed example of how to use the plugin can be found here: http://bdwm.be/wpcf7cf/how-to-set-up-conditional-fields-for-contact-form-7/

What's new?

  • Required fields can be used inside hidden groups without causing validation problems.
  • Conditional groups can now be added to the emails as well. Just wrap the content with [group-name] ... [/group-name] tags.
Author Jules Colle
Profile
Contributors JulesColle, stevish
Tags conditional fields, contact form 7, forms, wordpress
  1. cf7-conditional-fields screenshot 1

    Back End

  2. cf7-conditional-fields screenshot 2

    Front End

1.0

0.2.9

0.2.8

  • forgot to update version number in 0.2.7, so changing version to 0.2.8 now.

0.2.7

0.2.6

0.2.5

0.2.4

  • Fixed bug that destroyed the conditional fields in email functionality

0.2.3

  • Added support for conditional fields in the other email fields (subject, sender, recipient, additional_headers). Thanks @stevish!
  • WP 4.7 broke the required conditional fields inside hidden groups, implemented in version 0.2. Thanks again to @stevish for pointing this out.
  • Got rid of checking which groups are hidden both on the front-end (JS) and in the back-end (PHP). Now this is only done in the front-end.
  • Tested the plugin with WP 4.7

0.2.2

  • Prevent strict standards notice to appear while adding new group via the "Conditional Fields Group" popup.
  • Only load cf7cf admin styles and scripts on cf7 pages.
  • groups are now reset to their initial states after the form is successfully submitted.

0.2.1

0.2

0.1.7

0.1.6

0.1.5

0.1.4

0.1.3

  • Removed fielset, id and class attributes for group tags, because they weren't used anyway and broke the shortcode
  • If extra attributes are added to the group shortcode, this will no longer break functionality (even though no attributes are supported)

0.1.2

  • Make code work with select element that allows multiple options.
  • Only load javascript on pages that contain a CF7 form

0.1.1

Fixed bug with exclusive checkboxes (https://wordpress.org/support/topic/groups-not-showing)

0.1

First release

Why are there not more Frequently asked questions?

Because no questions have been asked frequently about this plugin.

Share  
Download
Version 1.0

Requires WordPress version: 4.1 or higher

Compatible up to: 4.7.2

Last Updated 25 Jan 2017

Date Added: 01 Jun 2016

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

4.6 stars
31 ratings
21,880 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0

Probably Works.
Considering downloads, would expect problems reported.