Contact Form 7 Multi-Step Forms - Version 2.22

Version Description

Contact From 7 version 4.8 or above is required for this version.
fixed back button going back more than one step.

Download this release

Release Info

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

Code changes from version 2.21 to 2.22

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: 2.21
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
@@ -24,7 +24,7 @@ Version: 2.21
24
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
  */
26
 
27
- define( 'CF7MSM_VERSION', '2.21' );
28
  define( 'CF7MSM_PLUGIN', __FILE__ );
29
  define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
30
  define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
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: 2.22
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', '2.22' );
28
  define( 'CF7MSM_PLUGIN', __FILE__ );
29
  define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
30
  define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: http://webheadcoder.com/donate-cf7-multi-step-forms
4
  Tags: contact form 7, multistep form, form, multiple pages, store form, contact, multi, step
5
  Requires at least: 4.5
6
  Tested up to: 4.8
7
- Stable tag: 2.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -100,6 +100,10 @@ The `multistep` form tag is a hidden field and tries not to add any spacing to y
100
 
101
  == Changelog ==
102
 
 
 
 
 
103
  = 2.21 =
104
  **Contact From 7 version 4.8 or above is required for this version**.
105
  fixed an issue where a notice occurred when using scan_form_tags on servers that displayed PHP notices.
4
  Tags: contact form 7, multistep form, form, multiple pages, store form, contact, multi, step
5
  Requires at least: 4.5
6
  Tested up to: 4.8
7
+ Stable tag: 2.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
100
 
101
  == Changelog ==
102
 
103
+ = 2.22 =
104
+ **Contact From 7 version 4.8 or above is required for this version**.
105
+ fixed back button going back more than one step.
106
+
107
  = 2.21 =
108
  **Contact From 7 version 4.8 or above is required for this version**.
109
  fixed an issue where a notice occurred when using scan_form_tags on servers that displayed PHP notices.
resources/cf7msm.js CHANGED
@@ -6,7 +6,7 @@ jQuery(document).ready(function($) {
6
 
7
  var step_field = $("input[name='step']");
8
  //multi step forms
9
- if (step_field.length > 0) {
10
  var cf7_form = $(step_field[0].form);
11
  $.each(cf7msm_ls, function(key, val){
12
  if (key == 'cf7msm_prev_urls') {
@@ -92,7 +92,7 @@ jQuery(document).ready(function($) {
92
  if ( name === 'step' ) {
93
  if ( value.indexOf("-") !== -1 ) {
94
  var steps_prev_urls = {};
95
- if ( cf7msm_ls && cf7msm_ls.steps_prev_urls ) {
96
  steps_prev_urls = cf7msm_ls.cf7msm_prev_urls;
97
  }
98
  var stepParts = value.split('-');
6
 
7
  var step_field = $("input[name='step']");
8
  //multi step forms
9
+ if (cf7msm_ls != null && step_field.length > 0) {
10
  var cf7_form = $(step_field[0].form);
11
  $.each(cf7msm_ls, function(key, val){
12
  if (key == 'cf7msm_prev_urls') {
92
  if ( name === 'step' ) {
93
  if ( value.indexOf("-") !== -1 ) {
94
  var steps_prev_urls = {};
95
+ if ( cf7msm_ls && cf7msm_ls.cf7msm_prev_urls ) {
96
  steps_prev_urls = cf7msm_ls.cf7msm_prev_urls;
97
  }
98
  var stepParts = value.split('-');