Version Description
- fixed values not saving across steps on Safari browsers.
Download this release
Release Info
Developer | webheadllc |
Plugin | Contact Form 7 Multi-Step Forms |
Version | 4.1.92 |
Comparing to | |
See all releases |
Code changes from version 4.1.91 to 4.1.92
- contact-form-7-multi-step-module.php +2 -2
- js_src/cf7msm.js +2 -2
- readme.txt +5 -2
- resources/cf7msm.min.js +1 -1
contact-form-7-multi-step-module.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://www.mymonkeydo.com/contact-form-7-multi-step-module/
|
|
6 |
Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
|
7 |
Author: Webhead LLC.
|
8 |
Author URI: http://webheadcoder.com
|
9 |
-
Version: 4.1.
|
10 |
Text Domain: contact-form-7-multi-step-module
|
11 |
*/
|
12 |
/* Copyright 2021 Webhead LLC (email: info at webheadcoder.com)
|
@@ -68,7 +68,7 @@ if ( function_exists( 'cf7msm_fs' ) ) {
|
|
68 |
cf7msm_fs();
|
69 |
// Signal that SDK was initiated.
|
70 |
do_action( 'cf7msm_fs_loaded' );
|
71 |
-
define( 'CF7MSM_VERSION', '4.1.
|
72 |
define( 'CF7MSM_PLUGIN', __FILE__ );
|
73 |
define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
|
74 |
define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
|
6 |
Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
|
7 |
Author: Webhead LLC.
|
8 |
Author URI: http://webheadcoder.com
|
9 |
+
Version: 4.1.92
|
10 |
Text Domain: contact-form-7-multi-step-module
|
11 |
*/
|
12 |
/* Copyright 2021 Webhead LLC (email: info at webheadcoder.com)
|
68 |
cf7msm_fs();
|
69 |
// Signal that SDK was initiated.
|
70 |
do_action( 'cf7msm_fs_loaded' );
|
71 |
+
define( 'CF7MSM_VERSION', '4.1.92' );
|
72 |
define( 'CF7MSM_PLUGIN', __FILE__ );
|
73 |
define( 'CF7MSM_FREE_TEXT_PREFIX_RADIO', '_wpcf7_radio_free_text_' );
|
74 |
define( 'CF7MSM_FREE_TEXT_PREFIX_CHECKBOX', '_wpcf7_checkbox_free_text_' );
|
js_src/cf7msm.js
CHANGED
@@ -108,7 +108,7 @@ var cf7msm_ss;
|
|
108 |
else if ( field.is('select') ) {
|
109 |
field.find('option').filter(function() {
|
110 |
return this.value == val;
|
111 |
-
}).
|
112 |
}
|
113 |
else {
|
114 |
field.val(val);
|
@@ -133,7 +133,7 @@ var cf7msm_ss;
|
|
133 |
$.each(val, function(i, v){
|
134 |
multiselect_field.find('option').filter(function(){
|
135 |
return this.value == v;
|
136 |
-
}).
|
137 |
});
|
138 |
}
|
139 |
}
|
108 |
else if ( field.is('select') ) {
|
109 |
field.find('option').filter(function() {
|
110 |
return this.value == val;
|
111 |
+
}).prop('selected', true);
|
112 |
}
|
113 |
else {
|
114 |
field.val(val);
|
133 |
$.each(val, function(i, v){
|
134 |
multiselect_field.find('option').filter(function(){
|
135 |
return this.value == v;
|
136 |
+
}).prop('selected', true);
|
137 |
});
|
138 |
}
|
139 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: webheadllc
|
|
3 |
Donate Link: https://webheadcoder.com/donate-cf7-multi-step-forms
|
4 |
Tags: contact form 7, multistep form, form, multiple pages, contact, multi, step
|
5 |
Requires at least: 4.7
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 4.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -135,6 +135,9 @@ When checkboxes are not checked they aren't submitted through the form so the la
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
138 |
= 4.1.91 =
|
139 |
* updated Freemius to v2.4.3.
|
140 |
|
3 |
Donate Link: https://webheadcoder.com/donate-cf7-multi-step-forms
|
4 |
Tags: contact form 7, multistep form, form, multiple pages, contact, multi, step
|
5 |
Requires at least: 4.7
|
6 |
+
Tested up to: 6.0
|
7 |
+
Stable tag: 4.1.92
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 4.1.92 =
|
139 |
+
* fixed values not saving across steps on Safari browsers.
|
140 |
+
|
141 |
= 4.1.91 =
|
142 |
* updated Freemius to v2.4.3.
|
143 |
|
resources/cf7msm.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([,,,,,function(e,t,n){e.exports=n(6)},function(e,t,n){"use strict";n.r(t);var r,o;n(7);function i(){try{return sessionStorage.setItem("test","test"),sessionStorage.removeItem("test"),!0}catch(e){return!1}}o=jQuery,document.addEventListener("DOMContentLoaded",e=>{var t=cf7msm_posted_data,n=o("input[name='_cf7msm_multistep_tag']"),s=n.length>0;if(s||(s=(n=o("input[name='cf7msm-step']")).length>0),s){var a=n.closest("form"),f=a.find('input[name="_wpcf7"]').val();i()?null!=(r=sessionStorage.getObject("cf7msm"))&&o.each(r,(function(e,t){if("cf7msm_prev_urls"==e){var n=a.find(".wpcf7-back, .wpcf7-previous"),r=window.location.href,o=r.replace(/\/$/,""),i=!t.hasOwnProperty(r)||""==t[r];i&&(i=!t.hasOwnProperty(o)||""==t[o]),i&&(r=r.split("?")[0],o=r.replace(/\/$/,""),(i=!t.hasOwnProperty(r)||""==t[r])&&(i=!t.hasOwnProperty(o)||""==t[o])),i?n.hide():n.click((function(e){t.hasOwnProperty(r)&&""!=t[r]?window.location.href=t[r]:t.hasOwnProperty(o)&&""!=t[o]?window.location.href=t[o]:window.history.go(-1),e.preventDefault()}))}})):(o("input[name='cf7msm-no-ss']").val(1),o(".wpcf7-previous").hide());var c=wpcf7.submit;wpcf7.submit=function(e,t){!function(e){!function(e){var t=e;t instanceof jQuery||(t=o(e));var n=t.find("input[name='_cf7msm_multistep_tag']");0!=n.length&&(n.length>1&&(n=n.last()),o("<input />",{type:"hidden",name:"cf7msm_options",value:n.val()}).appendTo(t))}(e)}(e),c(e,t)},window.addEventListener("load",(function(){t&&(o.each(t,(function(e,t){if(e.indexOf("[]")===e.length-2&&(e=e.substring(0,e.length-2)),(0!=e.indexOf("_")||0==e.indexOf("_wpcf7_radio_free_text_")||0==e.indexOf("_wpcf7_checkbox_free_text_"))&&"cf7msm-step"!=e&&"cf7msm_options"!=e){var n=a.find('*[name="'+e+'"]:not([data-cf7msm-previous])'),r=a.find('input[name="'+e+'[]"]:not([data-cf7msm-previous])'),i=a.find('select[name="'+e+'[]"]:not([data-cf7msm-previous])');n.length>0?"radio"==n.prop("type")||"checkbox"==n.prop("type")?n.filter((function(){return o(this).val()==t})).prop("checked",!0):n.is("select")?n.find("option").filter((function(){return this.value==t})).
|
1 |
+
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([,,,,,function(e,t,n){e.exports=n(6)},function(e,t,n){"use strict";n.r(t);var r,o;n(7);function i(){try{return sessionStorage.setItem("test","test"),sessionStorage.removeItem("test"),!0}catch(e){return!1}}o=jQuery,document.addEventListener("DOMContentLoaded",e=>{var t=cf7msm_posted_data,n=o("input[name='_cf7msm_multistep_tag']"),s=n.length>0;if(s||(s=(n=o("input[name='cf7msm-step']")).length>0),s){var a=n.closest("form"),f=a.find('input[name="_wpcf7"]').val();i()?null!=(r=sessionStorage.getObject("cf7msm"))&&o.each(r,(function(e,t){if("cf7msm_prev_urls"==e){var n=a.find(".wpcf7-back, .wpcf7-previous"),r=window.location.href,o=r.replace(/\/$/,""),i=!t.hasOwnProperty(r)||""==t[r];i&&(i=!t.hasOwnProperty(o)||""==t[o]),i&&(r=r.split("?")[0],o=r.replace(/\/$/,""),(i=!t.hasOwnProperty(r)||""==t[r])&&(i=!t.hasOwnProperty(o)||""==t[o])),i?n.hide():n.click((function(e){t.hasOwnProperty(r)&&""!=t[r]?window.location.href=t[r]:t.hasOwnProperty(o)&&""!=t[o]?window.location.href=t[o]:window.history.go(-1),e.preventDefault()}))}})):(o("input[name='cf7msm-no-ss']").val(1),o(".wpcf7-previous").hide());var c=wpcf7.submit;wpcf7.submit=function(e,t){!function(e){!function(e){var t=e;t instanceof jQuery||(t=o(e));var n=t.find("input[name='_cf7msm_multistep_tag']");0!=n.length&&(n.length>1&&(n=n.last()),o("<input />",{type:"hidden",name:"cf7msm_options",value:n.val()}).appendTo(t))}(e)}(e),c(e,t)},window.addEventListener("load",(function(){t&&(o.each(t,(function(e,t){if(e.indexOf("[]")===e.length-2&&(e=e.substring(0,e.length-2)),(0!=e.indexOf("_")||0==e.indexOf("_wpcf7_radio_free_text_")||0==e.indexOf("_wpcf7_checkbox_free_text_"))&&"cf7msm-step"!=e&&"cf7msm_options"!=e){var n=a.find('*[name="'+e+'"]:not([data-cf7msm-previous])'),r=a.find('input[name="'+e+'[]"]:not([data-cf7msm-previous])'),i=a.find('select[name="'+e+'[]"]:not([data-cf7msm-previous])');n.length>0?"radio"==n.prop("type")||"checkbox"==n.prop("type")?n.filter((function(){return o(this).val()==t})).prop("checked",!0):n.is("select")?n.find("option").filter((function(){return this.value==t})).prop("selected",!0):n.val(t):r.length>0&&t.constructor===Array?""!=t&&t.length>0&&o.each(t,(function(e,t){r.filter((function(){return o(this).val()==t})).prop("checked",!0)})):i.length>0&&t.constructor===Array&&""!=t&&t.length>0&&o.each(t,(function(e,t){i.find("option").filter((function(){return this.value==t})).prop("selected",!0)}))}})),a.find('input[name="_wpcf7cf_options"]').trigger("change"))})),document.addEventListener("wpcf7mailsent",(function(e){if(i()){var t=0,n=0,s=[],a={};(r=sessionStorage.getObject("cf7msm"))||(r={});var c=!1,u=!1,p=!0,l=!1,d=null,m=!1;if(o.each(e.detail.inputs,(function(r){var i=e.detail.inputs[r].name,h=e.detail.inputs[r].value;if(i.indexOf("[]")===i.length-2?(-1===o.inArray(i,s)&&(a[i]=[]),a[i].push(h)):a[i]=h,"cf7msm-step"===i){if(-1!==h.indexOf("-")){c=!0,u=!1;var v=h.split("-");t=parseInt(v[0]),n=parseInt(v[1]),void 0!==cf7msm_redirect_urls[f]&&(d=cf7msm_redirect_urls[f]),t<n?p=!1:t===n&&(l=!0)}}else if("cf7msm_options"===i){c=!0,u=!0,p=!1;var w=JSON.parse(h);w.hasOwnProperty("next_url")&&(d=w.next_url),w.hasOwnProperty("last_step")&&(m=!0,d&&""!==d||(l=!0,p=!0))}else s.push(i)})),!c)return;if(!p){var h=o("#"+e.detail.unitTag).find("div.wpcf7-mail-sent-ok");0==h.length&&(h=o("#"+e.detail.unitTag).find(".wpcf7-response-output")),h.remove()}if(l){var v=o("#"+e.detail.unitTag+" form");v.find("*").not("div.wpcf7-response-output").hide(),v.find("div.wpcf7-response-output").parentsUntil("form").show()}if(u?m&&(r={}):0!=t&&t===n&&(r={}),d&&""!=d){var w=document.createElement("a");w.href=d;var _=w.hostname?w.hostname:"",g={};r&&r.cf7msm_prev_urls&&(g=r.cf7msm_prev_urls);var y=window.location.protocol+"//"+window.location.host;0===d.indexOf(y)||""!=_&&_!=window.location.host||(0!==d.indexOf("/")&&(y+="/"),d=y+d),g[d]=window.location.href;var O=d.split("?")[0];d!=O&&(g[O]=window.location.href),r.cf7msm_prev_urls=g}sessionStorage.setObject("cf7msm",r),d&&""!=d&&(window.location.href=d)}}),!1)}}),Storage.prototype.setObject=function(e,t){this.setItem(e,JSON.stringify(t))},Storage.prototype.getObject=function(e){var t=this.getItem(e);return t&&JSON.parse(t)}},function(e,t,n){}]));
|