Contact Form by WPForms – Drag & Drop Form Builder for WordPress - Version 1.1.8.4

Version Description

  • Changed: Form notification settings hide if set to Off
Download this release

Release Info

Developer jaredatch
Plugin Icon 128x128 Contact Form by WPForms – Drag & Drop Form Builder for WordPress
Version 1.1.8.4
Comparing to
See all releases

Code changes from version 1.1.8.3 to 1.1.8.4

Files changed (3) hide show
  1. assets/js/admin-builder.js +23 -1
  2. readme.txt +3 -0
  3. wpforms.php +2 -2
assets/js/admin-builder.js CHANGED
@@ -120,6 +120,9 @@
120
  // Confirmation settings
121
  WPFormsBuilder.confirmationToggle();
122
 
 
 
 
123
  // Clone form title to setup page
124
  $('#wpforms-setup-name').val($('#wpforms-panel-field-settings-form_title').val());
125
 
@@ -1049,8 +1052,12 @@
1049
  $(document).on('change', '#wpforms-panel-field-settings-confirmation_type', function(e) {
1050
  WPFormsBuilder.confirmationToggle();
1051
  });
1052
- },
1053
 
 
 
 
 
 
1054
 
1055
  /**
1056
  * Toggle displaying/setup Pagebreak fields and settings.
@@ -1126,6 +1133,21 @@
1126
  }
1127
  },
1128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1129
  //--------------------------------------------------------------------//
1130
  // Save and Exit
1131
  //--------------------------------------------------------------------//
120
  // Confirmation settings
121
  WPFormsBuilder.confirmationToggle();
122
 
123
+ // Notification settings
124
+ WPFormsBuilder.notificationToggle();
125
+
126
  // Clone form title to setup page
127
  $('#wpforms-setup-name').val($('#wpforms-panel-field-settings-form_title').val());
128
 
1052
  $(document).on('change', '#wpforms-panel-field-settings-confirmation_type', function(e) {
1053
  WPFormsBuilder.confirmationToggle();
1054
  });
 
1055
 
1056
+ // Toggle form notification setting fields
1057
+ $(document).on('change', '#wpforms-panel-field-settings-notification_enable', function(e) {
1058
+ WPFormsBuilder.notificationToggle();
1059
+ });
1060
+ },
1061
 
1062
  /**
1063
  * Toggle displaying/setup Pagebreak fields and settings.
1133
  }
1134
  },
1135
 
1136
+ /**
1137
+ * Toggle the displaying notification settings depending on if the
1138
+ * notifications are enabled.
1139
+ *
1140
+ * @since 1.1.9
1141
+ */
1142
+ notificationToggle: function() {
1143
+ var $notification = $('#wpforms-panel-field-settings-notification_enable');
1144
+ if ( $notification.find('option:selected').val() === '0'){
1145
+ $notification.parent().parent().find('.wpforms-panel-field').not($notification.parent()).hide();
1146
+ } else {
1147
+ $notification.parent().parent().find('.wpforms-panel-field').not($notification.parent()).show();
1148
+ }
1149
+ },
1150
+
1151
  //--------------------------------------------------------------------//
1152
  // Save and Exit
1153
  //--------------------------------------------------------------------//
readme.txt CHANGED
@@ -159,6 +159,9 @@ Syed Balkhi
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 1.1.8.3 =
163
  * Fixed: Issue with submit button position when form ends with columns classes
164
 
159
 
160
  == Changelog ==
161
 
162
+ = 1.1.8.4 =
163
+ * Changed: Form notification settings hide if set to Off
164
+
165
  = 1.1.8.3 =
166
  * Fixed: Issue with submit button position when form ends with columns classes
167
 
wpforms.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
- * Version: 1.1.8.3
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
@@ -54,7 +54,7 @@ final class WPForms_Lite {
54
  * @since 1.0.0
55
  * @var sting
56
  */
57
- private $version = '1.1.8.3';
58
 
59
  /**
60
  * The form data handler instance.
5
  * Description: Beginner friendly WordPress contact form plugin. Use our Drag & Drop form builder to create your WordPress forms.
6
  * Author: WPForms
7
  * Author URI: https://wpforms.com
8
+ * Version: 1.1.8.4
9
  * Text Domain: wpforms
10
  * Domain Path: languages
11
  *
54
  * @since 1.0.0
55
  * @var sting
56
  */
57
+ private $version = '1.1.8.4';
58
 
59
  /**
60
  * The form data handler instance.