=== Conditional Fields for Contact Form 7 === Contributors: Jules Colle, stevish Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=j_colle%40hotmail%2ecom&lc=US&item_name=Jules%20Colle%20%2d%20WP%20plugins%20%2d%20Responsive%20Gallery%20Grid&item_number=rgg¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted Author: Jules Colle Website: http://bdwm.be Tags: wordpress, contact form 7, forms, conditional fields Requires at least: 3.6.1 Tested up to: 4.6.1 Stable tag: 0.2.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Adds conditional logic to Contact Form 7. == Description == This plugin adds conditional logic to [Contact Form 7](https://wordpress.org/plugins/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/](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. == Installation == Please follow the [standard installation procedure for WordPress plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins). == Frequently Asked Questions == = Why are there not more Frequently asked questions? = Because no questions have been asked frequently about this plugin. == Screenshots == 1. Back End 2. Front End == Changelog == = 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 = * Bug fix: arrow kept spinning after submitting a form without conditional fields. (https://wordpress.org/support/topic/version-0-2-gives-a-continues-spinning-arrow-after-submitting/) * Removed anonymous functions from code, so the plugin also works for PHP versions older than 5.3. * Suppress errors generated if user uses invalid HTML markup in their form code. These errors could prevent form success message from appearing. = 0.2 = * Added support for required conditional fields inside hidden groups. A big thank you to @stevish for implementing this. * Added support for conditional fields in the email messages. This one also goes entirely to @stevish. Thanks man! * Added @stevish as a contributer to the project :) * Fix form not working in widgets or other places outside of the loop. Thanks to @ciprianolaru for the solution (https://wordpress.org/support/topic/problem-with-unit_tag-when-not-in-the-loop-form-not-used-in-post-or-page/#post-8299801) = 0.1.7 = * Fix popup warning to leave page even tough no changes have been made. Thanks to @hhmaster2045 for reporting the bug. https://wordpress.org/support/topic/popup-warning-to-leave-page-even-though-no-changes-have-been-made * Added export option for easier troubleshooting. * Don't include front end javascript in backend. = 0.1.6 = * made compatible with wpcf7-form-control-signature-wrap plugin https://wordpress.org/support/topic/signature-add-on-not-working = 0.1.5 = * fixed PHP notice thanks to @natalia_c https://wordpress.org/support/topic/php-notice-80 * tested with WP 4.5.3 = 0.1.4 = * Prevent conflicts between different forms on one page. * Prevent conflicts between multiple instances of the same form on one page. (https://wordpress.org/support/topic/bug-153) * Changed regex to convert \[group\] tags to <div> tags, as it was posing some conflicts with other plugins (https://wordpress.org/support/topic/plugin-influence-cf7-send-button-style) = 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