Contact Form 7 Multi-Step Forms - Version 1.4.3

Version Description

fix exclusive checkboxes not saving on back. added version to javascript.

Download this release

Release Info

Developer webheadllc
Plugin Icon 128x128 Contact Form 7 Multi-Step Forms
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

contact-form-7-multi-step-module.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.mymonkeydo.com/contact-form-7-multi-step-module/
5
  Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
6
  Author: Webhead LLC.
7
  Author URI: http://webheadcoder.com
8
- Version: 1.4.2
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
@@ -24,6 +24,7 @@ Version: 1.4.2
24
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
  */
26
 
 
27
 
28
  /**
29
  * Load modules after plugins loaded to check for hidden module.
@@ -71,9 +72,13 @@ function cf7msm_scripts() {
71
  $step = cf7msm_get('step');
72
  wp_enqueue_script('cf7msm',
73
  plugins_url('/resources/cf7msm.js', __FILE__),
74
- array('jquery') );
 
 
75
  wp_enqueue_style('cf7msm_styles',
76
- plugins_url('/resources/cf7msm.css', __FILE__)
 
 
77
  );
78
 
79
  //this makes the script useful even when cookies aren't used.
5
  Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
6
  Author: Webhead LLC.
7
  Author URI: http://webheadcoder.com
8
+ Version: 1.4.3
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
24
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
  */
26
 
27
+ define( 'CF7MSM_VERSION', '1.4.3' );
28
 
29
  /**
30
  * Load modules after plugins loaded to check for hidden module.
72
  $step = cf7msm_get('step');
73
  wp_enqueue_script('cf7msm',
74
  plugins_url('/resources/cf7msm.js', __FILE__),
75
+ array('jquery'),
76
+ CF7MSM_VERSION,
77
+ true );
78
  wp_enqueue_style('cf7msm_styles',
79
+ plugins_url('/resources/cf7msm.css', __FILE__),
80
+ array(),
81
+ CF7MSM_VERSION
82
  );
83
 
84
  //this makes the script useful even when cookies aren't used.
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: webheadllc
3
  Tags: contact form 7, multistep form, form, multiple pages, store form
4
  Requires at least: 3.4.1
5
- Tested up to: 4.0.1
6
- Stable tag: 1.4.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -69,6 +69,12 @@ This plugin is free for a reason. Please go through the video tutorial provided
69
 
70
  == Changelog ==
71
 
 
 
 
 
 
 
72
  = 1.4.1 =
73
  Fixed bug where tapping the Submit button on the final step submits form even with validation errors.
74
 
2
  Contributors: webheadllc
3
  Tags: contact form 7, multistep form, form, multiple pages, store form
4
  Requires at least: 3.4.1
5
+ Tested up to: 4.1
6
+ Stable tag: 1.4.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
69
 
70
  == Changelog ==
71
 
72
+ = 1.4.3 =
73
+ fix exclusive checkboxes not saving on back. added version to javascript.
74
+
75
+ = 1.4.2 =
76
+ fix radio button not saving on back. make sure its the last step before clearing cookies.
77
+
78
  = 1.4.1 =
79
  Fixed bug where tapping the Submit button on the final step submits form even with validation errors.
80
 
resources/cf7msm.js CHANGED
@@ -14,7 +14,7 @@ jQuery(document).ready(function($) {
14
  if (key.indexOf('_') != 0 && key != 'step') {
15
  var field = cf7_form.find('*[name="' + key + '"]');
16
  if (field.length > 0) {
17
- if ( field.prop('type') == 'radio' ) {
18
  field.filter('input[value="' + val + '"]').prop('checked', true);
19
  }
20
  else {
14
  if (key.indexOf('_') != 0 && key != 'step') {
15
  var field = cf7_form.find('*[name="' + key + '"]');
16
  if (field.length > 0) {
17
+ if ( field.prop('type') == 'radio' || field.prop('type') == 'checkbox' ) {
18
  field.filter('input[value="' + val + '"]').prop('checked', true);
19
  }
20
  else {