Contact Form 7 Multi-Step Forms - Version 1.3.6

Version Description

Updated readme to be more readable. Fixed issue for servers with magic quotes turned off. Fixes "Please fill out the form on the previous page" error.

Download this release

Release Info

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

Code changes from version 1.3.5 to 1.3.6

Files changed (2) hide show
  1. contact-form-7-multi-step-module.php +2 -2
  2. readme.txt +21 -10
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.3.5
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
@@ -105,7 +105,7 @@ function cf7msm_get($var_name, $default = '') {
105
  }
106
  else {
107
  $ret = isset( $_COOKIE[$var_name] ) ? $_COOKIE[$var_name] : $default;
108
- if (get_magic_quotes_gpc()) {
109
  $ret = stripslashes($ret);
110
  }
111
  $ret = json_decode( $ret, true );
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.3.6
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
105
  }
106
  else {
107
  $ret = isset( $_COOKIE[$var_name] ) ? $_COOKIE[$var_name] : $default;
108
+ if (get_magic_quotes_gpc() || function_exists('wp_magic_quotes')) {
109
  $ret = stripslashes($ret);
110
  }
111
  $ret = json_decode( $ret, true );
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: 3.6.1
6
- Stable tag: 1.3.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -17,29 +17,36 @@ Sample of this working is at [http://webheadcoder.com/contact-form-7-multi-step-
17
 
18
  **Usage**
19
 
 
 
 
 
 
 
 
 
20
  1. Create a contact form 7 form as you normally would.
21
 
22
- 1. Add a hidden tag named "step" with the value being the current step dash ("-") total steps. If you have a 5-step form and you are creating the first step, the hidden field would look like:
23
- [hidden step "1-5"]
24
- the last step, would look like:
25
- [hidden step "5-5"]
26
 
27
  1. In the "Additional Settings" textarea at the bottom of the form editing page, add in the location of the next form.
28
- If the next form is located on My2ndPage on example.com you would add the following to the "Additional Settings" textarea:
29
- on_sent_ok: "location.replace('http://example.com/My2ndPage/');"
30
 
31
  1. Repeat steps 1 - 3. On the form that will actually send a email, do not do step 3 unless you want the form to redirect
32
  the user to another page.
33
 
34
- In a contact form, to retrieve fields from previous forms you can use something like [form your-email] where "your-email" is the name of the field from the previous form. This would be useful on the last step where it is confirming all the info from previous forms.
35
 
36
- In a contact form you users may want to go back to a previous step to change some info they entered. To allow the user to go back, add the [back "Previous Step"] button to the form.
37
 
38
  **Additional Info**
39
  The hidden field is taken directly from the "Contact Form 7 Modules". If you have that installed, the Multi-Step plugin will use that.
40
 
41
  This plugin does not support File Uploads. If you need to use file uploads make sure to place it on the last step.
42
 
 
 
 
43
  == Frequently Asked Questions ==
44
 
45
  = Why did you do this? =
@@ -49,6 +56,10 @@ I have used countless free plugins and have saved countless hours. I could not
49
 
50
  == Changelog ==
51
 
 
 
 
 
52
  = 1.3.5 =
53
  Fix: Also detect contact-form-7-3rd-party-integration/hidden.php so no conflicts arise if both are activated.
54
 
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: 3.9
6
+ Stable tag: 1.3.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
17
 
18
  **Usage**
19
 
20
+ I write horrible instructions, but luckily Michael at RoseAppleMedia understood it and created a great tutorial!
21
+
22
+ [youtube https://www.youtube.com/watch?v=jlMQpwD5l1Q]
23
+
24
+
25
+
26
+ Instructions:
27
+
28
  1. Create a contact form 7 form as you normally would.
29
 
30
+ 1. Add a hidden tag named "step" with the value being <current_step>-<total-steps>. For example, if you have a 5-step form and you are creating the first step, the form would need: `[hidden step "1-5"]`. The last form in this example would need: `[hidden step "5-5"]`
 
 
 
31
 
32
  1. In the "Additional Settings" textarea at the bottom of the form editing page, add in the location of the next form.
33
+ If the next form is located on My2ndPage on example.com you would add the following to "Additional Settings" (note the following should all be on one line) `on_sent_ok: "location.replace('http://example.com/My2ndPage/');"`
 
34
 
35
  1. Repeat steps 1 - 3. On the form that will actually send a email, do not do step 3 unless you want the form to redirect
36
  the user to another page.
37
 
38
+ In a contact form, to retrieve fields from previous forms you can use something like `[form your-email]` where "your-email" is the name of the field from the previous form. This would be useful on the last step where it is confirming all the info from previous forms.
39
 
40
+ In a contact form you users may want to go back to a previous step to change some info they entered. To allow the user to go back, add the `[back "Previous Step"]` button to the form.
41
 
42
  **Additional Info**
43
  The hidden field is taken directly from the "Contact Form 7 Modules". If you have that installed, the Multi-Step plugin will use that.
44
 
45
  This plugin does not support File Uploads. If you need to use file uploads make sure to place it on the last step.
46
 
47
+ This plugin only works when the forms are on separate pages. Many have asked to make it load via ajax so all forms can reside on one page. This plugin does not support that. You can try it on your own, but it is harder than it seems.
48
+
49
+
50
  == Frequently Asked Questions ==
51
 
52
  = Why did you do this? =
56
 
57
  == Changelog ==
58
 
59
+ = 1.3.6 =
60
+ Updated readme to be more readable.
61
+ Fixed issue for servers with magic quotes turned off. Fixes "Please fill out the form on the previous page" error.
62
+
63
  = 1.3.5 =
64
  Fix: Also detect contact-form-7-3rd-party-integration/hidden.php so no conflicts arise if both are activated.
65