Contact Form 7 Multi-Step Forms - Version 2.23

Version Description

Contact From 7 version 4.8 or above is required for this version.
fixed back button on firefox.
fixed url not displaying correctly when it has the & symbol.

Download this release

Release Info

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

Code changes from version 2.22 to 2.23

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.22
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
@@ -24,7 +24,7 @@ Version: 2.22
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_' );
@@ -475,7 +475,7 @@ function cf7msm_footer() {
475
  if ( !empty( $cf7msm_redirect_urls ) ) {
476
  foreach( $cf7msm_redirect_urls as $id => $url ) {
477
  $js .= 'if ( event.detail.contactFormId === "' . $id . '") { ';
478
- $js .= sprintf('location.replace("%1$s");', esc_url( $url ) );
479
  $js .= '}';
480
  }
481
  }
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.23
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.23' );
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_' );
475
  if ( !empty( $cf7msm_redirect_urls ) ) {
476
  foreach( $cf7msm_redirect_urls as $id => $url ) {
477
  $js .= 'if ( event.detail.contactFormId === "' . $id . '") { ';
478
+ $js .= sprintf('location.replace("%1$s");', htmlspecialchars_decode( esc_url( $url ) ) );
479
  $js .= '}';
480
  }
481
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Plugin Name ===
2
  Contributors: webheadllc
3
  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.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -100,6 +100,11 @@ The `multistep` form tag is a hidden field and tries not to add any spacing to y
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.
@@ -221,3 +226,12 @@ updated readme.
221
 
222
  = 1.0 =
223
  Initial release.
 
 
 
 
 
 
 
 
 
1
+ === Contact Form 7 Multi-Step Forms ===
2
  Contributors: webheadllc
3
  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.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
100
 
101
  == Changelog ==
102
 
103
+ = 2.23 =
104
+ **Contact From 7 version 4.8 or above is required for this version**.
105
+ fixed back button on firefox.
106
+ fixed url not displaying correctly when it has the & symbol.
107
+
108
  = 2.22 =
109
  **Contact From 7 version 4.8 or above is required for this version**.
110
  fixed back button going back more than one step.
226
 
227
  = 1.0 =
228
  Initial release.
229
+
230
+
231
+
232
+ == Upgrade Notice ==
233
+
234
+ = 2.2 =
235
+ As of version 2.2, Contact Form 7 version 4.8 is required. There were some major changes in version 4.8 that broke a lot of the functionality of this plugin. Additional Settings "on_sent_ok" is no longer used as of this version, please use the multistep form tag instead.
236
+
237
+
resources/cf7msm.js CHANGED
@@ -104,11 +104,11 @@ jQuery(document).ready(function($) {
104
  var nextStep = (1+parseInt(currStep)) + '-' + totalSteps;
105
  steps_prev_urls[nextStep] = window.location.href;
106
  // hide the success messages on multi-step forms
107
- $('#' + event.detail.unitTag).find('div.wpcf7-mail-sent-ok').remove();
108
  }
109
  else if ( currStep === totalSteps ) {
110
  // hide the form on final multi-step form
111
- $(event.detail.unitTag + ' form').children().not('div.wpcf7-response-output').hide();
112
  }
113
  cf7msm_ls.cf7msm_prev_urls = steps_prev_urls;
114
  }
104
  var nextStep = (1+parseInt(currStep)) + '-' + totalSteps;
105
  steps_prev_urls[nextStep] = window.location.href;
106
  // hide the success messages on multi-step forms
107
+ $('#' + e.detail.unitTag).find('div.wpcf7-mail-sent-ok').remove();
108
  }
109
  else if ( currStep === totalSteps ) {
110
  // hide the form on final multi-step form
111
+ $(e.detail.unitTag + ' form').children().not('div.wpcf7-response-output').hide();
112
  }
113
  cf7msm_ls.cf7msm_prev_urls = steps_prev_urls;
114
  }