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

Version Description

Download this release

Release Info

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

Code changes from version 1.7.11 to 1.7.12

admin/models/FMModelManage_fm.php CHANGED
@@ -132,7 +132,7 @@ class FMModelManage_fm {
132
  $label = $labels[$ids_key];
133
  $type = $types[$ids_key];
134
  $params = $paramss[$ids_key];
135
- if (strpos($form, '%'.$id.' - '.$label.'%')) {
136
  $rep = '';
137
  $param = array();
138
  $param['attributes'] = '';
@@ -1728,6 +1728,7 @@ class FMModelManage_fm {
1728
  }
1729
  }
1730
  $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
 
1731
  $row->form_front = $form;
1732
  }
1733
  }
132
  $label = $labels[$ids_key];
133
  $type = $types[$ids_key];
134
  $params = $paramss[$ids_key];
135
+ if (strpos($form, '%'.$id.' - '.$label.'%') || strpos($form, '%'.$id.' -'.$label.'%')) {
136
  $rep = '';
137
  $param = array();
138
  $param['attributes'] = '';
1728
  }
1729
  }
1730
  $form = str_replace('%' . $id . ' - ' . $labels[$ids_key] . '%', $rep, $form);
1731
+ $form = str_replace('%' . $id . ' -' . $labels[$ids_key] . '%', $rep, $form);
1732
  $row->form_front = $form;
1733
  }
1734
  }
admin/views/FMViewManage_fm.php CHANGED
@@ -291,6 +291,9 @@ class FMViewManage_fm {
291
  if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
292
  w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
293
  }
 
 
 
294
  if (document.getElementById(id + '_label_sectionform_id_temp')) {
295
  if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
296
  w_field_label_pos = "top";
@@ -356,17 +359,6 @@ class FMViewManage_fm {
356
  gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
357
 
358
  function enable() {
359
- for (iiiii = 0; iiiii < 1000; iiiii++) {
360
- if (document.getElementsByTagName("iframe")[iiiii]) {
361
- if (document.getElementsByTagName("iframe")[iiiii].id == 'form_maker_editor_ifr') {
362
- id_ifr_editor = iiiii;
363
- break;
364
- }
365
- else {
366
- id_ifr_editor = -1;
367
- }
368
- }
369
- }
370
  alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
371
  for (x = 0; x < 14; x++) {
372
  document.getElementById('img_' + alltypes[x]).src = "<?php echo WD_FM_URL . '/images/'; ?>" + alltypes[x] + ".png";
@@ -1307,17 +1299,6 @@ class FMViewManage_fm {
1307
  gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
1308
 
1309
  function enable() {
1310
- for (iiiii = 0; iiiii < 1000; iiiii++) {
1311
- if (document.getElementsByTagName("iframe")[iiiii]) {
1312
- if (document.getElementsByTagName("iframe")[iiiii].id == 'form_maker_editor_ifr') {
1313
- id_ifr_editor = iiiii;
1314
- break;
1315
- }
1316
- else {
1317
- id_ifr_editor = -1;
1318
- }
1319
- }
1320
- }
1321
  alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
1322
  for (x = 0; x < 14; x++) {
1323
  document.getElementById('img_' + alltypes[x]).src = "<?php echo WD_FM_URL . '/images/'; ?>" + alltypes[x] + ".png";
291
  if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
292
  w_field_label = document.getElementById(id + '_element_labelform_id_temp').innerHTML.replace(/(\r\n|\n|\r)/gm," ");
293
  }
294
+ else {
295
+ w_field_label = " ";
296
+ }
297
  if (document.getElementById(id + '_label_sectionform_id_temp')) {
298
  if (document.getElementById(id + '_label_sectionform_id_temp').style.display == "block") {
299
  w_field_label_pos = "top";
359
  gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
360
 
361
  function enable() {
 
 
 
 
 
 
 
 
 
 
 
362
  alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
363
  for (x = 0; x < 14; x++) {
364
  document.getElementById('img_' + alltypes[x]).src = "<?php echo WD_FM_URL . '/images/'; ?>" + alltypes[x] + ".png";
1299
  gen = <?php echo (($id != 0) ? $row->counter : 1); ?>;
1300
 
1301
  function enable() {
 
 
 
 
 
 
 
 
 
 
 
1302
  alltypes = Array('customHTML', 'text', 'checkbox', 'radio', 'time_and_date', 'select', 'file_upload', 'captcha', 'map', 'button', 'page_break', 'section_break', 'paypal', 'survey');
1303
  for (x = 0; x < 14; x++) {
1304
  document.getElementById('img_' + alltypes[x]).src = "<?php echo WD_FM_URL . '/images/'; ?>" + alltypes[x] + ".png";
admin/views/FMViewSubmissions_fm.php CHANGED
@@ -1923,7 +1923,7 @@ class FMViewSubmissions_fm {
1923
 
1924
  $rep ='<div type="type_hidden" class="wdform-field">
1925
  <div class="wdform-label-section" style="float:left; width: 150px;"><span class="wdform-label">' . $label . '</span></div>
1926
- <div class="wdform-element-section" style="display: table-cell;"><input type="text" value="'.$element_value.'" id="wdform_'.$id1.'_element'.$form_id.'" name="'.$param['w_name'].'" '.$param['attributes'].'></div></div>';
1927
 
1928
  break;
1929
  }
1923
 
1924
  $rep ='<div type="type_hidden" class="wdform-field">
1925
  <div class="wdform-label-section" style="float:left; width: 150px;"><span class="wdform-label">' . $label . '</span></div>
1926
+ <div class="wdform-label-section" style="display: table-cell;"></div><div class="wdform-element-section" style="display: table-cell;"><input type="text" value="'.$element_value.'" id="wdform_'.$id1.'_element'.$form_id.'" name="'.$param['w_name'].'" '.$param['attributes'].'></div></div>';
1927
 
1928
  break;
1929
  }
form-maker.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Form Maker
4
  * Plugin URI: http://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.7.11
7
  * Author: http://web-dorado.com/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
@@ -132,17 +132,6 @@ function Form_maker_fornt_end_main($content) {
132
  $content = str_replace($padron, $replacment, $content);
133
  }
134
  }
135
- /*$pattern = '[\[contact_form_for_repace id="([0-9]*)"\]]';
136
- $count_forms_in_post = preg_match_all($pattern, $content, $matches_form);
137
- if ($count_forms_in_post) {
138
- require_once (WD_FM_DIR . '/frontend/controllers/FMControllerForm_maker.php');
139
- $controller = new FMControllerForm_maker();
140
- for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
141
- $padron = $matches_form[0][$jj];
142
- $replacment = $controller->execute($matches_form[1][$jj]);
143
- $content = str_replace($padron, $replacment, $content);
144
- }
145
- }*/
146
  }
147
  return $content;
148
  }
@@ -156,7 +145,6 @@ function xapel_shortcode_1($content) {
156
  $controller = new FMControllerForm_maker();
157
  for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
158
  $padron = $matches_form[0][$jj];
159
- $replacment = $controller->execute($matches_form[1][$jj]);
160
  $replacment = '[contact_form_for_repace id="' . $matches_form[1][$jj] . '"]';
161
  $content = str_replace($padron, $replacment, $content);
162
  }
@@ -168,7 +156,6 @@ function xapel_shortcode_1($content) {
168
  $controller = new FMControllerForm_maker();
169
  for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
170
  $padron = $matches_form[0][$jj];
171
- $replacment = $controller->execute($matches_form[1][$jj]);
172
  $replacment = '[contact_form_for_repace id="' . $matches_form[1][$jj] . '"]';
173
  $content = str_replace($padron, $replacment, $content);
174
  }
3
  * Plugin Name: Form Maker
4
  * Plugin URI: http://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.7.12
7
  * Author: http://web-dorado.com/
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
132
  $content = str_replace($padron, $replacment, $content);
133
  }
134
  }
 
 
 
 
 
 
 
 
 
 
 
135
  }
136
  return $content;
137
  }
145
  $controller = new FMControllerForm_maker();
146
  for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
147
  $padron = $matches_form[0][$jj];
 
148
  $replacment = '[contact_form_for_repace id="' . $matches_form[1][$jj] . '"]';
149
  $content = str_replace($padron, $replacment, $content);
150
  }
156
  $controller = new FMControllerForm_maker();
157
  for ($jj = 0; $jj < $count_forms_in_post; $jj++) {
158
  $padron = $matches_form[0][$jj];
 
159
  $replacment = '[contact_form_for_repace id="' . $matches_form[1][$jj] . '"]';
160
  $content = str_replace($padron, $replacment, $content);
161
  }
frontend/views/FMViewForm_maker.php CHANGED
@@ -560,7 +560,7 @@ class FMViewForm_maker {
560
  $label=$labels[$id1s_key];
561
  $type=$types[$id1s_key];
562
  $params=$paramss[$id1s_key];
563
- if (strpos($form, '%'.$id1.' - '.$label.'%')) {
564
  $rep='';
565
  $required=false;
566
  $param=array();
@@ -634,7 +634,7 @@ class FMViewForm_maker {
634
  {
635
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
636
  {
637
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
638
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
639
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
640
 
@@ -681,7 +681,7 @@ class FMViewForm_maker {
681
  {
682
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
683
  {
684
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
685
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
686
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
687
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -731,7 +731,7 @@ class FMViewForm_maker {
731
  {
732
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
733
  {
734
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
735
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
736
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
737
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -778,7 +778,7 @@ class FMViewForm_maker {
778
  {
779
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
780
  {
781
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
782
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
783
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
784
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -827,7 +827,7 @@ class FMViewForm_maker {
827
  {
828
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
829
  {
830
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
831
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
832
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
833
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -882,7 +882,7 @@ class FMViewForm_maker {
882
  {
883
  if(tinyMCE.get("wdform_'.$id1.'_wd_editor'.$form_id.'").getContent()=="")
884
  {
885
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
886
  jQuery("#wdform_'.$id1.'_wd_editor'.$form_id.'").addClass( "form-error" );
887
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
888
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -954,7 +954,7 @@ class FMViewForm_maker {
954
  {
955
  if(jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="")
956
  {
957
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
958
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
959
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
960
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
@@ -1059,7 +1059,7 @@ class FMViewForm_maker {
1059
  {
1060
  if(jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="")
1061
  {
1062
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1063
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1064
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1065
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
@@ -1074,7 +1074,7 @@ class FMViewForm_maker {
1074
  {
1075
  if(jQuery("#wdform_'.$id1.'_element_title'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_title'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[2].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_middle'.$form_id.'").val()=="'.$w_title[3].'" || jQuery("#wdform_'.$id1.'_element_middle'.$form_id.'").val()=="")
1076
  {
1077
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1078
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1079
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1080
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
@@ -1176,7 +1176,7 @@ class FMViewForm_maker {
1176
  {
1177
  if(jQuery("#wdform_'.$id1.'_street1'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_street2'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_city'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_state'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_postal'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_country'.$form_id.'").val()=="")
1178
  {
1179
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1180
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1181
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1182
  jQuery("#wdform_'.$id1.'_street1'.$form_id.'").focus();
@@ -1248,7 +1248,7 @@ class FMViewForm_maker {
1248
  {
1249
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1250
  {
1251
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1252
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1253
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1254
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -1349,7 +1349,7 @@ class FMViewForm_maker {
1349
  {
1350
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0 || jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val() == "")
1351
  {
1352
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1353
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1354
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1355
 
@@ -1435,7 +1435,7 @@ class FMViewForm_maker {
1435
  $check_js.='
1436
  if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none") {
1437
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0 || jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val() == "") {
1438
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1439
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1440
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1441
 
@@ -1508,7 +1508,7 @@ class FMViewForm_maker {
1508
  {
1509
  if( jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1510
  {
1511
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1512
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1513
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1514
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -1567,7 +1567,7 @@ class FMViewForm_maker {
1567
  {
1568
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1569
  {
1570
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1571
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1572
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1573
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -1643,7 +1643,7 @@ class FMViewForm_maker {
1643
  {
1644
  if(jQuery("#wdform_'.$id1.'_mm'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_hh'.$form_id.'").val()=="" || (jQuery("#wdform_'.$id1.'_ss'.$form_id.'").length != 0 ? jQuery("#wdform_'.$id1.'_ss'.$form_id.'").val()=="" : false))
1645
  {
1646
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1647
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1648
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1649
  jQuery("#wdform_'.$id1.'_hh'.$form_id.'").focus();
@@ -1690,7 +1690,7 @@ class FMViewForm_maker {
1690
  {
1691
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1692
  {
1693
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1694
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1695
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1696
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -1798,7 +1798,7 @@ class FMViewForm_maker {
1798
  {
1799
  if(jQuery("#wdform_'.$id1.'_day'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_month'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_year'.$form_id.'").val()=="")
1800
  {
1801
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1802
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1803
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1804
  jQuery("#wdform_'.$id1.'_day'.$form_id.'").focus();
@@ -1846,7 +1846,7 @@ class FMViewForm_maker {
1846
  {
1847
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1848
  {
1849
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1850
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1851
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1852
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").focus();
@@ -1901,7 +1901,7 @@ class FMViewForm_maker {
1901
  {
1902
  if(jQuery("#wd_captcha_input'.$form_id.'").val()=="")
1903
  {
1904
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
1905
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1906
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1907
  jQuery("#wd_captcha_input'.$form_id.'").focus();
@@ -2069,7 +2069,7 @@ class FMViewForm_maker {
2069
  {
2070
  if(jQuery("#wdform_'.$id1.'_element_dollars'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_dollars'.$form_id.'").val()=="")
2071
  {
2072
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2073
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2074
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2075
  jQuery("#wdform_'.$id1.'_element_dollars'.$form_id.'").focus();
@@ -2215,7 +2215,7 @@ class FMViewForm_maker {
2215
  {
2216
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
2217
  {
2218
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2219
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
2220
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2221
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -2312,7 +2312,7 @@ class FMViewForm_maker {
2312
  {
2313
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
2314
  {
2315
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2316
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2317
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2318
 
@@ -2407,7 +2407,7 @@ class FMViewForm_maker {
2407
  {
2408
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
2409
  {
2410
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2411
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2412
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2413
 
@@ -2482,7 +2482,7 @@ class FMViewForm_maker {
2482
  {
2483
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
2484
  {
2485
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2486
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2487
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2488
 
@@ -2583,7 +2583,7 @@ class FMViewForm_maker {
2583
  {
2584
  if(jQuery("#wdform_'.$id1.'_selected_star_amount'.$form_id.'").val()=="")
2585
  {
2586
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2587
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2588
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2589
  return false;
@@ -2642,7 +2642,7 @@ class FMViewForm_maker {
2642
  {
2643
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
2644
  {
2645
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2646
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2647
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2648
 
@@ -2697,7 +2697,7 @@ class FMViewForm_maker {
2697
  {
2698
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
2699
  {
2700
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2701
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
2702
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2703
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
@@ -2757,7 +2757,7 @@ class FMViewForm_maker {
2757
  {
2758
  if(jQuery("#wdform_'.$id1.'_slider_value'.$form_id.'").val()=='.$param['w_field_min_value'].')
2759
  {
2760
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2761
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2762
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2763
  return false;
@@ -2814,7 +2814,7 @@ class FMViewForm_maker {
2814
  {
2815
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'0").val()=="" || jQuery("#wdform_'.$id1.'_element'.$form_id.'1").val()=="")
2816
  {
2817
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2818
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2819
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2820
  jQuery("#wdform_'.$id1.'_element'.$form_id.'0").focus();
@@ -2874,7 +2874,7 @@ class FMViewForm_maker {
2874
  {
2875
  if('.$required_check.')
2876
  {
2877
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2878
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2879
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2880
  jQuery("#wdform_'.$id1.'_element'.$form_id.'0").focus();
@@ -2988,7 +2988,7 @@ class FMViewForm_maker {
2988
 
2989
  if(radio_checked==false)
2990
  {
2991
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
2992
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2993
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2994
  return false;
@@ -3002,7 +3002,7 @@ class FMViewForm_maker {
3002
  {
3003
  if(x.find(jQuery("div[wdid='.$id1.']")).find(jQuery("input[type=\'checkbox\']:checked")).length == 0)
3004
  {
3005
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
3006
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
3007
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
3008
  return false;
@@ -3017,7 +3017,7 @@ class FMViewForm_maker {
3017
  {
3018
  if(x.find(jQuery("div[wdid='.$id1.']")).find(jQuery("input[type=\'text\']")).filter(function() {return this.value.length !== 0;}).length == 0)
3019
  {
3020
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
3021
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
3022
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
3023
  return false;
@@ -3032,7 +3032,7 @@ class FMViewForm_maker {
3032
  {
3033
  if(x.find(jQuery("div[wdid='.$id1.']")).find(jQuery("select")).filter(function() {return this.value.length !== 0;}).length == 0)
3034
  {
3035
- alert("' .$label. ' ' . addslashes(__('field is required.', 'form_maker')) . '");
3036
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
3037
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
3038
  return false;
@@ -3069,6 +3069,7 @@ class FMViewForm_maker {
3069
  }
3070
  }
3071
  $form=str_replace('%'.$id1.' - '.$labels[$id1s_key].'%', $rep, $form);
 
3072
  }
3073
  }
3074
 
560
  $label=$labels[$id1s_key];
561
  $type=$types[$id1s_key];
562
  $params=$paramss[$id1s_key];
563
+ if (strpos($form, '%'.$id1.' - '.$label.'%') || strpos($form, '%'.$id1.' -'.$label.'%')) {
564
  $rep='';
565
  $required=false;
566
  $param=array();
634
  {
635
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
636
  {
637
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
638
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
639
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
640
 
681
  {
682
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
683
  {
684
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
685
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
686
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
687
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
731
  {
732
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
733
  {
734
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
735
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
736
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
737
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
778
  {
779
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
780
  {
781
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
782
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
783
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
784
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
827
  {
828
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
829
  {
830
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
831
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
832
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
833
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
882
  {
883
  if(tinyMCE.get("wdform_'.$id1.'_wd_editor'.$form_id.'").getContent()=="")
884
  {
885
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
886
  jQuery("#wdform_'.$id1.'_wd_editor'.$form_id.'").addClass( "form-error" );
887
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
888
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
954
  {
955
  if(jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="")
956
  {
957
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
958
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
959
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
960
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
1059
  {
1060
  if(jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="")
1061
  {
1062
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1063
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1064
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1065
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
1074
  {
1075
  if(jQuery("#wdform_'.$id1.'_element_title'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_title'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="'.$w_title[1].'" || jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="'.$w_title[2].'" || jQuery("#wdform_'.$id1.'_element_last'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_element_middle'.$form_id.'").val()=="'.$w_title[3].'" || jQuery("#wdform_'.$id1.'_element_middle'.$form_id.'").val()=="")
1076
  {
1077
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1078
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1079
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1080
  jQuery("#wdform_'.$id1.'_element_first'.$form_id.'").focus();
1176
  {
1177
  if(jQuery("#wdform_'.$id1.'_street1'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_street2'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_city'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_state'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_postal'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_country'.$form_id.'").val()=="")
1178
  {
1179
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1180
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1181
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1182
  jQuery("#wdform_'.$id1.'_street1'.$form_id.'").focus();
1248
  {
1249
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="'.$param['w_title'].'" || jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1250
  {
1251
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1252
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1253
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1254
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1349
  {
1350
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0 || jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val() == "")
1351
  {
1352
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1353
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1354
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1355
 
1435
  $check_js.='
1436
  if(x.find(jQuery("div[wdid='.$id1.']")).length != 0 && x.find(jQuery("div[wdid='.$id1.']")).css("display") != "none") {
1437
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0 || jQuery("#wdform_'.$id1.'_other_input'.$form_id.'").val() == "") {
1438
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1439
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1440
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1441
 
1508
  {
1509
  if( jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1510
  {
1511
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1512
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1513
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1514
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1567
  {
1568
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1569
  {
1570
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1571
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1572
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1573
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1643
  {
1644
  if(jQuery("#wdform_'.$id1.'_mm'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_hh'.$form_id.'").val()=="" || (jQuery("#wdform_'.$id1.'_ss'.$form_id.'").length != 0 ? jQuery("#wdform_'.$id1.'_ss'.$form_id.'").val()=="" : false))
1645
  {
1646
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1647
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1648
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1649
  jQuery("#wdform_'.$id1.'_hh'.$form_id.'").focus();
1690
  {
1691
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1692
  {
1693
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1694
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
1695
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1696
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1798
  {
1799
  if(jQuery("#wdform_'.$id1.'_day'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_month'.$form_id.'").val()=="" || jQuery("#wdform_'.$id1.'_year'.$form_id.'").val()=="")
1800
  {
1801
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1802
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1803
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1804
  jQuery("#wdform_'.$id1.'_day'.$form_id.'").focus();
1846
  {
1847
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
1848
  {
1849
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1850
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1851
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1852
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").focus();
1901
  {
1902
  if(jQuery("#wd_captcha_input'.$form_id.'").val()=="")
1903
  {
1904
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
1905
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
1906
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
1907
  jQuery("#wd_captcha_input'.$form_id.'").focus();
2069
  {
2070
  if(jQuery("#wdform_'.$id1.'_element_dollars'.$form_id.'").val()=="'.$w_title[0].'" || jQuery("#wdform_'.$id1.'_element_dollars'.$form_id.'").val()=="")
2071
  {
2072
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2073
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2074
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2075
  jQuery("#wdform_'.$id1.'_element_dollars'.$form_id.'").focus();
2215
  {
2216
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
2217
  {
2218
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2219
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
2220
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2221
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2312
  {
2313
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
2314
  {
2315
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2316
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2317
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2318
 
2407
  {
2408
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
2409
  {
2410
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2411
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2412
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2413
 
2482
  {
2483
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
2484
  {
2485
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2486
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2487
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2488
 
2583
  {
2584
  if(jQuery("#wdform_'.$id1.'_selected_star_amount'.$form_id.'").val()=="")
2585
  {
2586
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2587
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2588
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2589
  return false;
2642
  {
2643
  if(x.find(jQuery("div[wdid='.$id1.'] input:checked")).length == 0)
2644
  {
2645
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2646
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2647
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2648
 
2697
  {
2698
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'").val()=="")
2699
  {
2700
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2701
  jQuery("#wdform_'.$id1.'_element'.$form_id.'").addClass( "form-error" );
2702
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2703
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2757
  {
2758
  if(jQuery("#wdform_'.$id1.'_slider_value'.$form_id.'").val()=='.$param['w_field_min_value'].')
2759
  {
2760
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2761
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2762
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2763
  return false;
2814
  {
2815
  if(jQuery("#wdform_'.$id1.'_element'.$form_id.'0").val()=="" || jQuery("#wdform_'.$id1.'_element'.$form_id.'1").val()=="")
2816
  {
2817
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2818
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2819
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2820
  jQuery("#wdform_'.$id1.'_element'.$form_id.'0").focus();
2874
  {
2875
  if('.$required_check.')
2876
  {
2877
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2878
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2879
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2880
  jQuery("#wdform_'.$id1.'_element'.$form_id.'0").focus();
2988
 
2989
  if(radio_checked==false)
2990
  {
2991
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
2992
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
2993
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
2994
  return false;
3002
  {
3003
  if(x.find(jQuery("div[wdid='.$id1.']")).find(jQuery("input[type=\'checkbox\']:checked")).length == 0)
3004
  {
3005
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
3006
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
3007
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
3008
  return false;
3017
  {
3018
  if(x.find(jQuery("div[wdid='.$id1.']")).find(jQuery("input[type=\'text\']")).filter(function() {return this.value.length !== 0;}).length == 0)
3019
  {
3020
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
3021
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
3022
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
3023
  return false;
3032
  {
3033
  if(x.find(jQuery("div[wdid='.$id1.']")).find(jQuery("select")).filter(function() {return this.value.length !== 0;}).length == 0)
3034
  {
3035
+ alert("' .addslashes($label. ' ' . __('field is required.', 'form_maker')) . '");
3036
  old_bg=x.find(jQuery("div[wdid='.$id1.']")).css("background-color");
3037
  x.find(jQuery("div[wdid='.$id1.']")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false });
3038
  return false;
3069
  }
3070
  }
3071
  $form=str_replace('%'.$id1.' - '.$labels[$id1s_key].'%', $rep, $form);
3072
+ $form=str_replace('%'.$id1.' -'.$labels[$id1s_key].'%', $rep, $form);
3073
  }
3074
  }
3075
 
js/formmaker_div_free.js CHANGED
@@ -3757,9 +3757,9 @@ function remove_option(id, num)
3757
  function getIFrameDocument(aID){
3758
  var rv = null;
3759
  // if contentDocument exists, W3C compliant (Mozilla)
3760
- if (document.getElementById(aID).contentDocument){
3761
  rv = document.getElementById(aID).contentDocument;
3762
- } else {
3763
  // IE
3764
  rv = document.frames[aID].document;
3765
  }
@@ -27336,9 +27336,13 @@ function edit(id)
27336
  t=0;
27337
 
27338
  /////////shat handipox
27339
-
27340
- if(document.getElementById(id+'_element_labelform_id_temp').innerHTML)
27341
- w_field_label=document.getElementById(id+'_element_labelform_id_temp').innerHTML;
 
 
 
 
27342
 
27343
  if(document.getElementById(id+'_label_sectionform_id_temp'))
27344
  if(document.getElementById(id+'_label_sectionform_id_temp').style.display=="block")
3757
  function getIFrameDocument(aID){
3758
  var rv = null;
3759
  // if contentDocument exists, W3C compliant (Mozilla)
3760
+ if (document.getElementById(aID) && document.getElementById(aID).contentDocument){
3761
  rv = document.getElementById(aID).contentDocument;
3762
+ } else if (document.getElementById(aID)) {
3763
  // IE
3764
  rv = document.frames[aID].document;
3765
  }
27336
  t=0;
27337
 
27338
  /////////shat handipox
27339
+
27340
+ if (document.getElementById(id+'_element_labelform_id_temp').innerHTML) {
27341
+ w_field_label = document.getElementById(id+'_element_labelform_id_temp').innerHTML;
27342
+ }
27343
+ else {
27344
+ w_field_label = " ";
27345
+ }
27346
 
27347
  if(document.getElementById(id+'_label_sectionform_id_temp'))
27348
  if(document.getElementById(id+'_label_sectionform_id_temp').style.display=="block")
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-form.html
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, Formular, formulario
5
  Requires at least: 3.0
6
  Tested up to: 3.9.1
7
- Stable tag: 1.7.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: form, forms, form builder, form maker, form manager, form plugin, form with recaptcha, forms plugin, multiple forms, paypal form, survey form, feedback form, feedback forms, contact form,contact form plugin, contact form builder, form creator, email form, secure form, web form, form to email, contact forms, custom forms, form widget, captcha form, wordpress contact form ,recaptcha contact form, form creation, contact form with auto reply, widget contact form, builder, feedback, contacts form plugin , custom contact form, contact us form, Formular, formulario
5
  Requires at least: 3.0
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.7.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10