Developers
Jules Colle |
Download Stats
Today | 191 |
Yesterday | 321 |
Last Week | 1,995 |
All Time | 137,835 |
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 have added the field group(s), go to the "Conditional fields" tab to create one or more conditions that will make the group(s) appear.
How to use it
Follow this tutorial
Releases (105 )
Version | Release Date | Change Log |
---|---|---|
2.2.11 | 2022-12-13 | Reverted autop-fix because it was causing addional errors. Bottom line: Make sure you are om Conditional Fields version 2.2.11 and CF7 version 5.6.4 = |
2.2.10 | 2022-12-11 | Because the nature of the changes introduced in version 5.7 of Contact Form 7 you might need to make some manual changes to your forms and/or to your wp-config.php file. Please check the changelog. You could also wait for the release of version 5.7.1 of Contact Form 7. We hope the author will have address some of the issues by then. = |
2.2.9 | 2022-10-19 | (2022-10-19) = * Fully tested with Contact Form 7 version 5.6.4 * Add action hook: wpcf7cf_step_completed |
2.2.8 | 2022-10-14 | (2022-10-14) = * Fix acceptance field bug |
2.2.7 | 2022-10-14 | (2022-10-14) = * Remove unwanted whitespace between closing and opening group tags in mail messages. * Fix problems with acceptance fields More info * Redesign of form tester |
2.2.6 | 2022-09-08 | (2022-09-08) = * PRO: Fix issues with validation in nested repeaters GH issue 92 * Fix error with optional file field in hidden group GH issue 92 |
2.2.5 | 2022-09-04 | (2022-09-04) = * PRO: Fix bug with togglebutton |
2.2.4 | 2022-09-01 | (2022-09-01) = * Fully tested with Contact Form 7 version 5.6.3 * JS code refactoring * Allow adding class names to group. For example: [group g class:my-class][/group] |
2.2.3 | 2022-08-10 | (2022-08-10) = * Fully tested with Contact Form 7 version 5.6.2 * Fix for smartgrid plugin * Some code refactoring |
2.2.2 | 2022-08-07 | (2022-08-07) = * Performance improvements |
2.2.1 | 2022-07-21 | (2022-07-21) = * Fully tested with Contact Form 7 version 5.6.1 |
2.2 | 2022-06-17 | Make sure to also update CF7 to the latest version! (Version 2.2 is only compatible with CF7 versions 5.6 and up. Version 2.1.6 is only compatible with CF7 version 5.5.*) = |
2.1.6 | 2022-06-07 | (2022-06-07) = * Fix bug: text view cleared after making a change to form code when there are more than 50 conditions. |
2.1.5 | 2022-05-22 | (2022-05-22) = * Fully tested with Contact Form 7 version 5.5.6.1 |
2.1.4 | 2022-05-16 | (2022-05-16) = * It's no longer needed to save the form before adding conditions. Available groups are updated instantaneously after adding/changing them in the form editor. * Fix problems when group is named "children" GH issue 74 * Fix problems with unsaved changes notice GH issue 91 * Tested up to WP 6.0 |
2.1.3 | 2022-04-18 | (2022-04-18) = * check for user_cap 'wpcf7_edit_contact_forms' instead of 'wpcf7_edit_contact_form' in several places. Thanks, @paybox! * PRO multistep: make "Next step" and "Previous step" buttons translatable by third party plugins like wpml and loco translate. * PRO multistep: show spinner while validating a step. * PRO Fix additional disable_on_hide bug with multistep GH issue 87-4 * Replace all occurences of text domain 'contact-form-7' with 'cf7-conditional-fields' |
2.1.2 | 2022-02-23 | (2022-02-23) = * Fully tested with Contact Form 7 version 5.5.6 |
2.1.1 | 2022-02-14 | (2022-02-14) = * Fully tested with Contact Form 7 version 5.5.5 * Make scroll to success message less annoying. GH Issue 90 * Add extra check to make sure that scroll to success message only happens when the e-mail is sent. GH Issue 90 * PRO: fix disable_on_hide bugs. GH sssue 87 |
2.1 | 2022-01-27 | (2022-01-27) = * Tested up to wp 5.9 * Scroll success message into view after successful form submission. GH Issue 90 * Small changes GH PR 86 * Make 'change' event bubble up GH PR 88 |
2.0.9 | 2022-01-20 | (2022-01-20) = * Fully tested with Contact Form 7 version 5.5.4 |
2.0.8 | 2021-11-28 | (2021-11-28) =
* Check how code changes in CF7 related to |
2.0.7 | 2021-10-26 | (2021-10-26) = * Fully tested with Contact Form 7 version 5.5.2 (and also make the warning message disappear if all plugins are up to date) |
2.0.6 | 2021-10-26 | (2021-10-26) = * Fully tested with Contact Form 7 version 5.5.2 |
2.0.5 | 2021-10-13 | (2021-10-13) = * Fully tested with Contact Form 7 version 5.5.1 |
2.0.4 | 2021-07-23 | (2021-07-19) = * Fix issue with required file fields * Fully tested with Contact Form 7 version 5.4.2 |
2.0.3 | 2021-05-02 | (2021-05-02) = * Fully tested with Contact Form 7 version 5.4.1 * (dev note: fixed automated tests) |
2.0.2 | 2021-04-06 | (2021-04-06) = * Fix bug: third-party required fields not triggering validation. Thanks @dedotombo! |
2.0.1 | 2021-03-31 | (2021-03-31) = * Force height:auto on groups. (Fixes regression errors with groups inside repeaters) * Allow more funky characters as conditional fields values (there was a problem with less than sign <) * Fix bug with hidden required file and multifile fields causing validation errors * Implemented extra tests so these errors cannot reoccur in future updates. |
2.0 | 2021-03-29 | Make sure to also update CF7 to the latest version! (Version 2.0 is only compatible with CF7 versions 5.4 and up. Version 1.9.16 is only compatible with CF7 version 5.3.*) = |
1.9.16 | 2021-03-09 | |
1.9.15 | 2021-03-04 | (2021-03-03) = * PRO: add disable_on_hide attribute, which allows using multiple fields with the same name. * Make plugin translatable. Big thanks to Yordan Soares for the PR * Fix PHP Error if all mails are disabled * PRO: Fix rename $settings to $wpcf7cf_settings * Compatibility with CF7 Smart-grid layout plugin * Added global variable WPCF7CF_CF7_MAX_VERSION to indicate latest version of CF7 that was succesfully tested with this plugin. * Show notice in admin if the current CF7 version is anything other than WPCF7CF_CF7_MAX_VERSION |
1.9.14 | 2020-10-03 | (2020-10-03) = * PRO:Repeater: Hide Remove button initially when repeater has min:0 * PRO:Multistep: Disable Next button while validating step. * IE11 compat: Fix classList bug (occured in IE11 if form contained SVG elements) |
1.9.13 | 2020-09-28 | (2020-09-28) = * IE11 compatibility: Add Array.from polyfill |
1.9.12 | 2020-09-24 | (2020-09-24) = * PRO:Multistep: add new event 'wpcf7cf_step_invalid', triggered after step validation failed. Example usage * PRO:Multifile: Fix bug where multifle* was not sending attachments |
1.9.11 | 2020-09-07 | (2020-08-19) = * PRO:Repeater: Fix bug group inside repeater not visible when shown by default #64 * PRO:Multifile: Add new tag: [multifile]. Allows to upload multiple files at once. * PRO:Repeater: Fix bug that occured when removing sub-repeater before the animation of the previous removal was finished. * PRO:Repeater: Introduce global JS API function wpcf7cf.repeaterAddSub * PRO:Repeater: Introduce global JS API function wpcf7cf.repeaterAddSubAtIndex * PRO:Repeater: Introduce global JS API function wpcf7cf.repeaterRemoveSub * PRO:Repeater: Introduce global JS API function wpcf7cf.repeaterRemoveSubAtIndex * PRO:Multistep: Introduce global JS API function wpcf7cf.multistepMoveToStep * PRO:Multistep: Introduce global JS API function wpcf7cf.multistepMoveToStepWithValidation |
1.9.10 | 2020-08-19 | (2020-08-19) = * PRO: Fix multistep bug: general error message does not appear if step validation fails |
1.9.9 | 2020-07-29 | (2020-07-29) = * Fix bug when saving conditions from Text View * Tested with WP 5.5 |
1.9.8 | 2020-07-20 | (2020-07-20) = * Make sure all posted data is analyzed after submitting (part of) a form. A recent update of CF7 stripped away some information, resulting in PHP Notices. |
1.9.7 | 2020-07-07 | (2020-07-07) = * fix IE11 compatibility |
1.9.6 | 2020-07-04 | (2020-07-04) = * PRO: Fixed bug: checkboxes and multiselect validation not working inside repeater |
1.9.5 | 2020-06-30 | (2020-07-01) = * PRO: Fixed bug: multistep forms interference with other forms after calling wpcf7cf.initForm() * PRO: Fixed bug: function operator no longer working. |
1.9.4 | 2020-06-23 | (2020-06-23) = * Fixed bug: JS error when conditonal fields settings where not saved manually by the user. |
1.9.3 | 2020-06-21 | (2020-06-21) = * Ignore conditions where group or field name does not exist, instead of throwing an error * Get rid of PHP notice related to new settings * Something went wrong with SVN commit 1.9.1 and 1.9.2 (so although these version might show up, it's not really a valid version) |
1.9.2 | 2020-06-21 | |
1.9.1 | 2020-06-21 | |
1.9 | 2020-06-21 | (2020-06-21) = * Performance improvements * Added extra setting: "Conditional Fields UI". If you have a lot of conditions, set this to "Text mode" for better performance in the admin interface. * Improved styling on Conditional Fields Settings page * Improved docs * Improved the form tester * PRO: Multistep bug that was causing checkboxes and multiselect to not trigger validation errors * PRO: Summary added support for files, checkboxes and multiselect * Added test to ensure that normal view entries are always converted to text view correctly |
1.8.7 | 2020-06-02 | (2020-06-01) =
* PRO: Change auto-update mechanism
* Some minor JS refactoring
* Improved on some edge cases with |
1.8.6 | 2020-04-18 | (2020-04-18) = * Fixed: accidentally packed the entire jQuery library in scripts.js * Cleaned up some console.logs that was still hanging around in the code. |
1.8.5 | 2020-04-17 | (2020-04-17) =
* Tested with WP 5.4
* fix multiselect
* fix required file field inside mutistep
* allow group names to contain |
1.8.3 | 2020-03-01 | (2020-03-01) = * Fix JS error on submit (reported by @wasi7186) * PRO multistep: On the last step of a multistep form, instead of cloning and hiding the submit button, we now simply move it to the next-step-container. This solves a compatibility issue with a third party recaptcha plugin (and probably some other plugins too) |
1.8.2 | 2020-02-27 | (02-27-2020) = * Small patch. Add a check in the ajaxComplete event, to make sure xhr.responseJSON is not null or undefined. (this caused a JS error on some websites) |
1.8.1 | 2020-02-24 | (02-23-20) = * PRO: Bring form in initial state after submit, including going back to first step of multistep and resetting the initial number of sub-repeaters in each repeater. * PRO: New field: [summary]. https://conditional-fields-cf7.bdwm.be/summary/ * PRO: Make form submission trigger next step (if not on last step) * PRO: Multistep: automatically scroll to top of form after moving to a different step. * PRO: Multistep: Replace h3 tag with div as step-title. * PRO: Made some small changes to the default multistep styles, for basic mobile friendly behaviour. * PRO: Make multistep compatibility with cf7-image-captcha plugin |
1.8 | 2020-02-03 | (02-03-20) = * WPML compatibility: Force conditions to be an array. (https://wordpress.org/support/topic/wpml-conditional-fields-not-working-on-translations/#post-12390827) |
1.7.9 | 2020-01-23 | (01-22-20) = * PRO (01-02-20) Added quick fix for problem with [_format_date "d m Y"] inside repeater. (see: https://github.com/pwkip/contact-form-7-conditional-fields/issues/38) * (01-22-20) Fixed Ajax by adding global wpcf7cf variable to window. * Changed min PHP version to 5.6 (might still be compatible with 5.4, but I suspect some edge case errors with older versions of PHP) |
1.7.8 | 2019-11-26 | (11-26-19) =
* Updated/added Javascript events for groups, repeaters and multistep + added documentation at https://conditional-fields-cf7.bdwm.be/docs/examples/javascript-events/
* Fixed bug where using invalid regex as a value would give a JS error (https://wordpress.org/support/topic/star-ratings-6/)
* PRO Multistep: Added attribute to multistep |
1.7.6 | 2019-11-01 | (11-01-19) = * Fixed small compatibility problem with CF7 Smart Grid (https://wordpress.org/support/topic/problem-on-save-form-when-the-active-tabs-are-not-conditional-form/#post-12085173) * Fixed some more porblems with parsing conditions (regex changes) * Got rid of screen_icon notice on CF settings page |
1.7.5 | 2019-11-01 | (10-31-19) = * Fixed bug in admin where settings got cleared if using some operators (mostly PRO operators) |
1.7.4 | 2019-10-29 | (10-29-19) =
* PRO: made repeater (80%) compatible with material-design-for-contact-form-7
* PRO: made exclusive checkbox work with repeater fields
* PRO: trigger events when a repeater adds fields: 'wpcf7cf_repeater_added' - and when a repeater removes fields: 'wpcf7cf_repeater_removed'. Can be called with |
1.7.3 | 2019-10-24 | (10-24-19) = * removed @babel/polyfill. All seems to be working fine without it in IE11. JS file is now back to 25kb instead of 100kb. |
1.7.2 | 2019-10-24 | (10-24-19) = * Bug fix: new javascript files where throwing errors. Should be okay now. (Also included JS source map for easier debugging) |
1.7.1 | 2019-10-23 | (10-23-19) = * PRO: Added basic support for multistep. No options available yet. You can insert [step] tags inside your code. More info at https://conditional-fields-cf7.bdwm.be/multistep/ * Set up an NPM dev environment with babel and webpack. This means all the client side JS code will look super ugly, and it's also more bytes. But the plus side is that the plugin should also work fine in older browsers now. * Tested with WP version 5.3 |
1.7 | 2019-10-18 | (10-18-19) = * code rewrite. Made code more testable by focusing more on a functional approach. Not completely finished yet, but getting there. * FIXED clear_on_hide not working for multi select https://github.com/pwkip/contact-form-7-conditional-fields/issues/35 * PRO: FIXED https://github.com/pwkip/contact-form-7-conditional-fields/issues/34 - A real nest fest is now possible. You can put groups inside repeaters inside repeaters inside groups ... * FIXED make clear_on_hide restore initial values instead of clearing https://github.com/pwkip/contact-form-7-conditional-fields/issues/31 * WP-admin: Renamed "Import/Export" to "Text view". Conditions specified in the input fields are now semi-automatically synced with the text view. * Internal change: When saving conditions, instead of posting all the input fields, the input fields are added to the "text view" textarea, and only the textarea will be sent. This is to prevent issues with PHP max_input_vars |
1.6.5 | 2019-10-15 | (10-15-19) = * Patched a minor security issue. From now on, only users with the 'wpcf7_edit_contact_form' capability will be able to reset the Conditional Fields settings to their defaults. Big tThanks to Chloe from Wordfence for pointing this out! * Tested the plugin with WP version 5.2.4 |
1.6.3 | 2019-07-04 | (07-04-19) = * Removed the word "Pro" from the title in the free plugin |
1.6.2 | 2019-06-25 | (06-15-19) = * Small changes to tag generator buttons * Multistep bug fix. All group conditions are evaluated a second time after the page has fully loaded. * PRO: added new operator 'function', allowing you to write custom javascript functions to determine whether or not a group should be shown https://conditional-fields-cf7.bdwm.be/advanced-conditional-logic-with-custom-javascript-functions/ * PRO: fix bug with < (less than) operator |
1.6.1 | 2019-06-03 | (06-03-19) = * JS refactoring and small compatibility fix after code rewrite. * FREE: Added "Get PRO" button under Contact > Conditional Fields |
1.5.5 | 2019-05-20 | (05-20-19) = * Fixed and explained how to disable loading of the styles and scripts and only enable it on certain pages. More info: https://conditional-fields-cf7.bdwm.be/docs/faq/can-i-load-js-and-css-only-when-necessary/ * Made sure default settings get set after activating plugin, without the need to visit the Contact > Conditional Fields page first. * PRO: extended the repeater with min and max paramaters and the possibility to change the add and remove buttons texts * PRO: enabling the pro plugin will show a notification to disable the free plugin, instead of throwing a PHP error. |
1.5.4 | 2019-05-06 | (05-06-19) = * Make sure scripts get loaded late enough (wp_enqueue_scripts priority set to 20), because there was a problem with multistep where the multistep script was changing a value after the cf script ran. https://wordpress.org/support/topic/1-5-x-not-expanding-selected-hidden-groups-with-multi-step-on-previous-page/ |
1.5.3 | 2019-05-03 | (05-03-19) = * Refix the fix from version 1.4.3 that got unfixed in version 1.5 somehow |
1.5.2 | 2019-05-03 | (05-03-19)= * by reverting changes in 1.5.1, the possibility to load forms via AJAX was destroyed. So, from now on the wpcf7cf scripts will be loaded in the 'wp_enqueue_scripts' hook. Analogous with the WPCF7_LOAD_JS constant, a new constant is defined called WPCF7CF_LOAD_JS wich is set to true by default. |
1.5.1 | 2019-05-02 | (05-02-19) = * revert changes: enqueue scripts in 'wpcf7_contact_form' hook instead of 'wpcf7_enqueue_scripts', because loading it in the latter would cause problems with plugins that disable WPCF7_LOAD_JS (like for example contact-form-7-paypal-add-on). |
1.5 | 2019-04-21 | (04-21-19) = * Make it possible to load forms with AJAX https://github.com/pwkip/contact-form-7-conditional-fields/issues/25 and https://conditional-fields-cf7.bdwm.be/docs/faq/how-to-initialize-the-conditional-logic-after-an-ajax-call/ * Massive code reorganization in scripts.js * Fixed bug that could appear after removing an AND condition. * solve WPCF7_ADMIN_READ_WRITE_CAPABILITY - https://github.com/pwkip/contact-form-7-conditional-fields/pull/16 * disable part of the faulty remove_hidden_post_data function. - https://github.com/pwkip/contact-form-7-conditional-fields/pull/17 * Fix "Dismiss notice" on Conditional Fields for Contact Form 7 Settings page * use the "wpcf7_before_send_mail" hook instead of "wpcf7_mail_components" to hide mail groups. The wpcf7_before_send_mail hook is called earlier, so it allows to also hide groups in the attachment field and in messages. * Allow conditional group tags in success and error messages. https://github.com/pwkip/contact-form-7-conditional-fields/issues/23 * duplicating a form will also duplicate conditions https://github.com/pwkip/contact-form-7-conditional-fields/issues/28 |
1.4.3 | 2019-04-12 | (04-12-19) = * Really fix clear_on_hide problem (https://wordpress.org/support/topic/clear_on_hide-still-not-working-right-after-1-4-2-update/) |
1.4.2 | 2019-04-10 | (04-10-19) = * Disabled mailbox syntax errors if there are group tags present. (this is overkill, and should be changed if the necassary hooks become available) https://wordpress.org/support/topic/filter-detect_invalid_mailbox_syntax/ * Checked issue: https://github.com/pwkip/contact-form-7-conditional-fields/issues/26 (nothing changed, but turns out to be working fine) * Fixed issue where mail_2 added extra lines in the email message. https://github.com/pwkip/contact-form-7-conditional-fields/issues/30 * Made the clear_on_hide property a bit more useful (https://github.com/pwkip/contact-form-7-conditional-fields/issues/27) * Got rid of warning in PHP 7 (https://wordpress.org/support/topic/compatibility-warning-message-regarding-wpcf7_admin_read_write_capability/) * Fixed some javascript errors that appeared on non-CF7CF subpages of CF7 * Tested WP version 5.1.1 |
1.4.1 | 2018-08-21 | (08-21-18) = * Fixed some CSS issues (https://wordpress.org/support/topic/crash-view-admin-the-list-of-posts-entry/) * Dropped support for PHP version 5.2, now PHP 5.3+ is required to run the plugin. Let's push things forward! * Added conditional group support to mail attachments field (https://github.com/pwkip/contact-form-7-conditional-fields/issues/22) * Added repeater field to PRO version. |
1.4 | 2018-08-15 |
|
1.3.4 | 2017-11-21 |
|
1.3.3 | 2017-11-21 |
|
1.3.2 | 2017-05-08 |
|
1.3.1 | 2017-04-23 |
|
1.3 | 2017-04-23 |
|
1.2.3 | 2017-04-02 |
|
1.2.2 | 2017-03-29 |
|
1.2.1 | 2017-03-29 |
|
1.2 | 2017-03-29 |
|
1.1 | 2017-02-16 |
|
1.0 | 2017-01-25 |
|
0.2.9 | 2017-01-12 |
|
0.2.8 | 2017-01-07 |
|
0.2.7 | 2017-01-07 |
|
0.2.6 | 2016-12-16 |
|
0.2.5 | 2016-12-16 |
|
0.2.4 | 2016-12-09 |
|
0.2.3 | 2016-12-09 |
|
0.2.2 | 2016-10-24 |
|
0.2.1 | 2016-10-23 |
|
0.2 | 2016-10-17 |
|
0.1.7 | 2016-08-15 |
|
0.1.6 | 2016-07-07 |
|
0.1.5 | 2016-06-22 |
|
0.1.4 | 2016-06-18 |
|
0.1.3 | 2016-06-14 |
|
0.1.2 | 2016-06-02 |
|
0.1.1 | 2016-06-02 | Fixed bug with exclusive checkboxes (https://wordpress.org/support/topic/groups-not-showing) |
0.1 | 2016-06-01 | First release |