Form Maker by WD – user-friendly drag & drop Form Builder plugin - Version 1.10.6

Version Description

Fixed: Bug on spinner field
Fixed: Bug on matrix field

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Form Maker by WD – user-friendly drag & drop Form Builder plugin
Version 1.10.6
Comparing to
See all releases

Code changes from version 1.10.5 to 1.10.6

admin/views/FMViewFormMakerPreview.php CHANGED
@@ -39,6 +39,7 @@ class FMViewFormMakerPreview {
39
  <link media="all" type="text/css" href="<?php echo WD_FM_URL . '/css/calendar-jos.css'; ?>" rel="stylesheet">
40
  <link media="all" type="text/css" href="<?php echo WD_FM_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>" rel="stylesheet">
41
  <link media="all" type="text/css" href="<?php echo WD_FM_URL . '/css/jquery-ui-spinner.css'; ?>" rel="stylesheet">
 
42
  <?php
43
  if (isset($_GET['test_theme'])) {
44
  wp_print_scripts('jquery-effects-shake');
39
  <link media="all" type="text/css" href="<?php echo WD_FM_URL . '/css/calendar-jos.css'; ?>" rel="stylesheet">
40
  <link media="all" type="text/css" href="<?php echo WD_FM_URL . '/css/jquery-ui-1.10.3.custom.css'; ?>" rel="stylesheet">
41
  <link media="all" type="text/css" href="<?php echo WD_FM_URL . '/css/jquery-ui-spinner.css'; ?>" rel="stylesheet">
42
+ <link media="all" type="text/css" href="<?php echo WD_FM_URL . '/css/form_maker_frontend.css'; ?>" rel="stylesheet">
43
  <?php
44
  if (isset($_GET['test_theme'])) {
45
  wp_print_scripts('jquery-effects-shake');
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
- * Version: 1.10.5
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -279,7 +279,7 @@ function register_fmemailverification_cpt(){
279
  // Activate plugin.
280
  function form_maker_activate() {
281
  $version = get_option("wd_form_maker_version");
282
- $new_version = '1.10.5';
283
  global $wpdb;
284
  if (!$version) {
285
  add_option("wd_form_maker_version", $new_version, '', 'no');
3
  * Plugin Name: Form Maker
4
  * Plugin URI: https://web-dorado.com/products/form-maker-wordpress.html
5
  * Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
6
+ * Version: 1.10.6
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
279
  // Activate plugin.
280
  function form_maker_activate() {
281
  $version = get_option("wd_form_maker_version");
282
+ $new_version = '1.10.6';
283
  global $wpdb;
284
  if (!$version) {
285
  add_option("wd_form_maker_version", $new_version, '', 'no');
frontend/models/FMModelForm_maker.php CHANGED
@@ -2263,7 +2263,7 @@ class FMModelForm_maker {
2263
  else {
2264
  if($input_type == "text") {
2265
  for($j = 1; $j <= $columns_count; $j++) {
2266
- $checked = isset($_POST['wdform_'.$i."_input_element".$id.$k.'_'.$j]) ? $_POST['wdform_'.$i."_input_element".$id.$k.'_'.$j] : "";
2267
  $matrix .= '<td style="text-align:center"><input type="text" value="' . $checked . '" disabled /></td>';
2268
  }
2269
  }
@@ -4741,7 +4741,7 @@ class FMModelForm_maker {
4741
  else {
4742
  if($input_type == "text") {
4743
  for($j = 1; $j <= $columns_count; $j++) {
4744
- $checked = isset($_POST['wdform_'.$key."_input_element".$id.$k.'_'.$j]) ? $_POST['wdform_'.$key."_input_element".$id.$k.'_'.$j] : "";
4745
  $matrix .= '<td style="text-align:center"><input type="text" value="' . $checked . '" disabled /></td>';
4746
  }
4747
  }
2263
  else {
2264
  if($input_type == "text") {
2265
  for($j = 1; $j <= $columns_count; $j++) {
2266
+ $checked = isset($_POST['wdform_'.$i."_input_element".$id.$k.'_'.$j]) ? esc_html($_POST['wdform_'.$i."_input_element".$id.$k.'_'.$j]) : "";
2267
  $matrix .= '<td style="text-align:center"><input type="text" value="' . $checked . '" disabled /></td>';
2268
  }
2269
  }
4741
  else {
4742
  if($input_type == "text") {
4743
  for($j = 1; $j <= $columns_count; $j++) {
4744
+ $checked = isset($_POST['wdform_'.$key."_input_element".$id.$k.'_'.$j]) ? esc_html($_POST['wdform_'.$key."_input_element".$id.$k.'_'.$j]) : "";
4745
  $matrix .= '<td style="text-align:center"><input type="text" value="' . $checked . '" disabled /></td>';
4746
  }
4747
  }
frontend/views/FMViewForm_maker.php CHANGED
@@ -1006,6 +1006,7 @@ class FMViewForm_maker {
1006
  $req_fields = array();
1007
  $check_regExp_all = array();
1008
  $file_upload_check = array();
 
1009
 
1010
  $GLOBALS['map_include'] = false;
1011
 
@@ -3830,8 +3831,9 @@ class FMViewForm_maker {
3830
  ';
3831
 
3832
  if($required){
3833
- array_push($req_fields, $id1);
3834
- }
 
3835
  break;
3836
  }
3837
 
@@ -4130,8 +4132,39 @@ class FMViewForm_maker {
4130
  var required_fields<?php echo $id; ?> = <?php echo json_encode($req_fields) ?>;
4131
  var labels_and_ids<?php echo $id; ?> = <?php echo json_encode($labels_and_ids) ?>;
4132
  var check_regExp_all<?php echo $id; ?> = <?php echo json_encode($check_regExp_all) ?>;
4133
- var file_upload_check<?php echo $id; ?> = <?php echo json_encode($file_upload_check) ?>;
4134
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4135
  function wd_is_filled(form_id, field_id){
4136
  var x = jQuery("#form" + form_id);
4137
  var req_fields = field_id ? field_id.split() : window['required_fields'+form_id];
@@ -4664,6 +4697,12 @@ class FMViewForm_maker {
4664
  exp_array[wdid] = exp;
4665
  jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(<?php echo $id; ?>, exp_array)}).focus(function() {jQuery("#form"+<?php echo $id; ?>+" #wd_exp_"+wdid).remove(); jQuery("#form"+<?php echo $id; ?>+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")});
4666
  });
 
 
 
 
 
 
4667
 
4668
 
4669
  jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)});
@@ -4888,8 +4927,11 @@ class FMViewForm_maker {
4888
  if(!wd_is_filled(form_id))
4889
  return false;
4890
 
4891
- if(!wd_check_regExp(form_id))
4892
  return false;
 
 
 
4893
 
4894
 
4895
  x = jQuery("#form<?php echo $form_id; ?>");
@@ -4912,6 +4954,9 @@ class FMViewForm_maker {
4912
 
4913
  if(!wd_check_regExp(form_id))
4914
  return false;
 
 
 
4915
 
4916
  x = jQuery("#<?php echo $form_id ?>form_view"+id);
4917
  <?php echo $check_js; ?>
1006
  $req_fields = array();
1007
  $check_regExp_all = array();
1008
  $file_upload_check = array();
1009
+ $spinner_check = array();
1010
 
1011
  $GLOBALS['map_include'] = false;
1012
 
3831
  ';
3832
 
3833
  if($required){
3834
+ array_push($req_fields, $id1);
3835
+ }
3836
+ $spinner_check[$id1] = array($param['w_field_min_value'], $param['w_field_max_value']);
3837
  break;
3838
  }
3839
 
4132
  var required_fields<?php echo $id; ?> = <?php echo json_encode($req_fields) ?>;
4133
  var labels_and_ids<?php echo $id; ?> = <?php echo json_encode($labels_and_ids) ?>;
4134
  var check_regExp_all<?php echo $id; ?> = <?php echo json_encode($check_regExp_all) ?>;
4135
+ var file_upload_check<?php echo $id; ?> = <?php echo json_encode($file_upload_check) ?>;
4136
+ var spinner_check<?php echo $id; ?> = <?php echo json_encode($spinner_check) ?>;
4137
+
4138
+ function wd_spinner_check(form_id, spinner_check_field){
4139
+ var x = jQuery("#form" + form_id);
4140
+ var find_wrong_values = false;
4141
+ var spinner_check = spinner_check_field ? spinner_check_field : window['spinner_check'+form_id];
4142
+ jQuery.each( spinner_check, function( wdid, spinner_values ) {
4143
+ var element = "#wdform_" + wdid + "_element" + form_id;
4144
+ if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none") {
4145
+ if(parseInt(jQuery(element).val()) < parseInt(spinner_values[0]) || parseInt(jQuery(element).val()) > parseInt(spinner_values[1]))
4146
+ {
4147
+ jQuery("#form"+form_id+" #wd_price_"+wdid).remove();
4148
+ x.find(jQuery("div[wdid='"+wdid+"'] .wdform-element-section")).append("<div id='wd_price_"+wdid+"' class='fm-not-filled'>" + "<?php echo addslashes((__('Value must be between ', 'form_maker'))); ?>" + (spinner_values[0] ? spinner_values[0] : 0) + '-' + (spinner_values[1] ? spinner_values[1] : "any") + "</div>");
4149
+ jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price");
4150
+ find_wrong_values = true;
4151
+
4152
+ if(!spinner_check_field){
4153
+ scroll_on_element(form_id);
4154
+ }
4155
+ }
4156
+
4157
+ }
4158
+ });
4159
+ if(find_wrong_values === false)
4160
+ return true;
4161
+
4162
+ return false;
4163
+ }
4164
+
4165
+
4166
+
4167
+
4168
  function wd_is_filled(form_id, field_id){
4169
  var x = jQuery("#form" + form_id);
4170
  var req_fields = field_id ? field_id.split() : window['required_fields'+form_id];
4697
  exp_array[wdid] = exp;
4698
  jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(<?php echo $id; ?>, exp_array)}).focus(function() {jQuery("#form"+<?php echo $id; ?>+" #wd_exp_"+wdid).remove(); jQuery("#form"+<?php echo $id; ?>+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")});
4699
  });
4700
+
4701
+ jQuery.each( spinner_check<?php echo $id; ?>, function( wdid, spinner_min_max ) {
4702
+ var spinner_min_max_array = {};
4703
+ spinner_min_max_array[wdid] = spinner_min_max;
4704
+ jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_spinner_check(<?php echo $id; ?>, spinner_min_max_array)}).focus(function() {jQuery("#form"+<?php echo $id; ?>+" #wd_price_"+wdid).remove(); jQuery("#form"+<?php echo $id; ?>+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")});
4705
+ });
4706
 
4707
 
4708
  jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)});
4927
  if(!wd_is_filled(form_id))
4928
  return false;
4929
 
4930
+ if(!wd_check_regExp(form_id))
4931
  return false;
4932
+
4933
+ if(!wd_spinner_check(form_id))
4934
+ return false;
4935
 
4936
 
4937
  x = jQuery("#form<?php echo $form_id; ?>");
4954
 
4955
  if(!wd_check_regExp(form_id))
4956
  return false;
4957
+
4958
+ if(!wd_spinner_check(form_id))
4959
+ return false;
4960
 
4961
  x = jQuery("#<?php echo $form_id ?>form_view"+id);
4962
  <?php echo $check_js; ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-form.html
4
  Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
5
  Requires at least: 3.4
6
  Tested up to: 4.7
7
- Stable tag: 1.10.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -314,6 +314,11 @@ Form Maker uses phone and number field types, which are verified and do not acce
314
  Email field should be used since it verifies that an entry format fulfills example@example.com format.
315
 
316
  == Changelog ==
 
 
 
 
 
317
  = 1.10.5 =
318
  Fixed: JS conflict on Form submission
319
 
4
  Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
5
  Requires at least: 3.4
6
  Tested up to: 4.7
7
+ Stable tag: 1.10.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
314
  Email field should be used since it verifies that an entry format fulfills example@example.com format.
315
 
316
  == Changelog ==
317
+
318
+ = 1.10.6 =
319
+ Fixed: Bug on spinner field
320
+ Fixed: Bug on matrix field
321
+
322
  = 1.10.5 =
323
  Fixed: JS conflict on Form submission
324