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

Version Description

bug in select field fixed

Download this release

Release Info

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

Code changes from version 1.7.52 to 1.7.53

Files changed (3) hide show
  1. form-maker.php +2 -2
  2. js/formmaker_div_free.js +35 -2
  3. readme.txt +4 -1
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.52
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -231,7 +231,7 @@ if (class_exists('WP_Widget')) {
231
  // Activate plugin.
232
  function form_maker_activate() {
233
  $version = get_option("wd_form_maker_version");
234
- $new_version = '1.7.52';
235
  if (!$version) {
236
  add_option("wd_form_maker_version", $new_version, '', 'no');
237
  global $wpdb;
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.53
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
231
  // Activate plugin.
232
  function form_maker_activate() {
233
  $version = get_option("wd_form_maker_version");
234
+ $new_version = '1.7.53';
235
  if (!$version) {
236
  add_option("wd_form_maker_version", $new_version, '', 'no');
237
  global $wpdb;
js/formmaker_div_free.js CHANGED
@@ -1,8 +1,8 @@
1
- j = 2;//choices id
2
  var c;
3
  var need_enable=true;;
4
  var a = new Array();
5
- //var plugin_url = "";
6
  var count_of_fields_form = 7;
7
 
8
  if (ajaxurl.indexOf("://") != -1) {
@@ -2798,11 +2798,34 @@ function change_label_name(num, id, label, type)
2798
  }
2799
  }
2800
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2801
  function change_label_value(id, label)
2802
  {
2803
  document.getElementById(id).value=label;
2804
  }
2805
 
 
 
 
 
 
 
 
 
2806
  function change_label_1(id, label) {
2807
  document.getElementById(id).value = label;
2808
  }
@@ -3065,6 +3088,7 @@ function add_choise(type, num)
3065
  el_choices.setAttribute("value", "");
3066
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
3067
  el_choices.setAttribute("onKeyUp", "change_label_name('"+max_value+"', '"+num+"_label_element"+max_value+"', this.value, '"+type+"'); change_label_value('"+num+"_elementform_id_temp"+max_value+"', jQuery('#el_option_value"+max_value+"').val())");
 
3068
 
3069
  var el_choices_value = document.createElement('input');
3070
  el_choices_value.setAttribute("id", "el_option_value"+max_value);
@@ -3075,6 +3099,7 @@ function add_choise(type, num)
3075
  if(!jQuery('#el_disable_value').prop('checked'))
3076
  el_choices_value.setAttribute("disabled", "disabled");
3077
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+num+"_elementform_id_temp"+max_value+"', this.value)");
 
3078
 
3079
  var el_choices_remove = document.createElement('img');
3080
  el_choices_remove.setAttribute("id", "el_choices"+max_value+"_remove");
@@ -3132,6 +3157,7 @@ function add_choise(type, num)
3132
  el_choices.setAttribute("value", "");
3133
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
3134
  el_choices.setAttribute("onKeyUp", "change_label_name('"+max_value+"', '"+num+"_option"+max_value+"', this.value, 'select')");
 
3135
 
3136
  var el_choices_remove = document.createElement('img');
3137
  el_choices_remove.setAttribute("id", "el_option"+max_value+"_remove");
@@ -3149,6 +3175,7 @@ function add_choise(type, num)
3149
  if(!jQuery('#el_disable_value').prop('checked'))
3150
  el_choices_value.setAttribute("disabled", "disabled");
3151
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+num+"_option"+max_value+"', this.value)");
 
3152
 
3153
  var el_choices_dis = document.createElement('input');
3154
  el_choices_dis.setAttribute("type", 'checkbox');
@@ -11241,6 +11268,7 @@ function type_checkbox(i, w_field_label, w_field_label_size, w_field_label_pos,
11241
  el_choices.setAttribute("checked", w_choices_checked[j]);
11242
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
11243
  el_choices.setAttribute("onKeyUp", "change_label_name("+j+", '"+i+"_label_element"+j+"', this.value, 'checkbox'); change_label_value('"+i+"_elementform_id_temp"+j+"', jQuery('#el_option_value"+j+"').val());");
 
11244
  if(w_choices_params[j])
11245
  el_choices.setAttribute("disabled", 'disabled');
11246
 
@@ -11252,6 +11280,7 @@ function type_checkbox(i, w_field_label, w_field_label_size, w_field_label_pos,
11252
  el_choices_value.setAttribute("value", w_choices_value[j]);
11253
  el_choices_value.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
11254
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+i+"_elementform_id_temp"+j+"', this.value)");
 
11255
  if(w_value_disabled=='no' || w_choices_params[j] || (w_allow_other=="yes" && j==w_allow_other_num))
11256
  el_choices_value.setAttribute("disabled", 'disabled');
11257
 
@@ -11946,6 +11975,7 @@ function type_radio(i, w_field_label, w_field_label_size, w_field_label_pos, w_f
11946
  el_choices.setAttribute("checked", w_choices_checked[j]);
11947
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
11948
  el_choices.setAttribute("onKeyUp", "change_label('"+i+"_label_element"+j+"', this.value)");
 
11949
  if(w_choices_params[j])
11950
  el_choices.setAttribute("disabled", 'disabled');
11951
 
@@ -11957,6 +11987,7 @@ function type_radio(i, w_field_label, w_field_label_size, w_field_label_pos, w_f
11957
  el_choices_value.setAttribute("value", w_choices_value[j]);
11958
  el_choices_value.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
11959
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+i+"_elementform_id_temp"+j+"', this.value)");
 
11960
  if(w_value_disabled=='no' || w_choices_params[j] || (w_allow_other=="yes" && j==w_allow_other_num))
11961
  el_choices_value.setAttribute("disabled", 'disabled');
11962
 
@@ -14635,6 +14666,7 @@ function type_own_select(i, w_field_label, w_field_label_size, w_field_label_pos
14635
  el_choices.setAttribute("value", w_choices[j]);
14636
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
14637
  el_choices.setAttribute("onKeyUp", "change_label_name('"+j+"', '"+i+"_option"+j+"', this.value, 'select')");
 
14638
  if(w_choices_params[j])
14639
  el_choices.setAttribute("disabled", 'disabled');
14640
 
@@ -14666,6 +14698,7 @@ function type_own_select(i, w_field_label, w_field_label_size, w_field_label_pos
14666
  el_choices_value.setAttribute("value", w_choices_value[j]);
14667
  el_choices_value.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
14668
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+i+"_option"+j+"', this.value)");
 
14669
  if(w_value_disabled=='no' || w_choices_params[j])
14670
  el_choices_value.setAttribute("disabled", 'disabled');
14671
 
1
+ j = 2;
2
  var c;
3
  var need_enable=true;;
4
  var a = new Array();
5
+
6
  var count_of_fields_form = 7;
7
 
8
  if (ajaxurl.indexOf("://") != -1) {
2798
  }
2799
  }
2800
 
2801
+ function change_label_name_on_paste(num, id, label, type)
2802
+ {
2803
+ setTimeout(function(){
2804
+ label = elem.value;
2805
+ jQuery('#'+id).html(label);
2806
+ if(!jQuery('#el_disable_value').prop('checked'))
2807
+ {
2808
+ if(!jQuery('#el_choices'+num).attr('other'))
2809
+ jQuery('#el_option_value'+num).val(label);
2810
+ if(type=='select')
2811
+ jQuery('#'+id).val(label);
2812
+ }
2813
+ }, 100);
2814
+ }
2815
+
2816
  function change_label_value(id, label)
2817
  {
2818
  document.getElementById(id).value=label;
2819
  }
2820
 
2821
+ function change_label_value_on_paste(id, elem)
2822
+ {
2823
+ setTimeout(function(){
2824
+ label = elem.value;
2825
+ document.getElementById(id).value=label;
2826
+ }, 100);
2827
+ }
2828
+
2829
  function change_label_1(id, label) {
2830
  document.getElementById(id).value = label;
2831
  }
3088
  el_choices.setAttribute("value", "");
3089
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
3090
  el_choices.setAttribute("onKeyUp", "change_label_name('"+max_value+"', '"+num+"_label_element"+max_value+"', this.value, '"+type+"'); change_label_value('"+num+"_elementform_id_temp"+max_value+"', jQuery('#el_option_value"+max_value+"').val())");
3091
+ el_choices.setAttribute("onpaste", "elem = this; change_label_name_on_paste('"+max_value+"', '"+num+"_label_element"+max_value+"', '"+type+"'); change_label_value_on_paste('"+num+"_elementform_id_temp"+max_value+"', this)");
3092
 
3093
  var el_choices_value = document.createElement('input');
3094
  el_choices_value.setAttribute("id", "el_option_value"+max_value);
3099
  if(!jQuery('#el_disable_value').prop('checked'))
3100
  el_choices_value.setAttribute("disabled", "disabled");
3101
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+num+"_elementform_id_temp"+max_value+"', this.value)");
3102
+ el_choices_value.setAttribute("onpaste", "change_label_value_on_paste('"+num+"_elementform_id_temp"+max_value+"', this)");
3103
 
3104
  var el_choices_remove = document.createElement('img');
3105
  el_choices_remove.setAttribute("id", "el_choices"+max_value+"_remove");
3157
  el_choices.setAttribute("value", "");
3158
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
3159
  el_choices.setAttribute("onKeyUp", "change_label_name('"+max_value+"', '"+num+"_option"+max_value+"', this.value, 'select')");
3160
+ el_choices.setAttribute("onpaste", "elem = this; change_label_name_on_paste('"+max_value+"', '"+num+"_option"+max_value+"', 'select')");
3161
 
3162
  var el_choices_remove = document.createElement('img');
3163
  el_choices_remove.setAttribute("id", "el_option"+max_value+"_remove");
3175
  if(!jQuery('#el_disable_value').prop('checked'))
3176
  el_choices_value.setAttribute("disabled", "disabled");
3177
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+num+"_option"+max_value+"', this.value)");
3178
+ el_choices_value.setAttribute("onpaste", "change_label_value_on_paste('"+num+"_option"+max_value+"', this)");
3179
 
3180
  var el_choices_dis = document.createElement('input');
3181
  el_choices_dis.setAttribute("type", 'checkbox');
11268
  el_choices.setAttribute("checked", w_choices_checked[j]);
11269
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
11270
  el_choices.setAttribute("onKeyUp", "change_label_name("+j+", '"+i+"_label_element"+j+"', this.value, 'checkbox'); change_label_value('"+i+"_elementform_id_temp"+j+"', jQuery('#el_option_value"+j+"').val());");
11271
+ el_choices.setAttribute("onpaste", "elem = this; change_label_name_on_paste('"+j+"', '"+i+"_label_element"+j+"', 'checkbox'); change_label_value_on_paste('"+i+"_elementform_id_temp"+j+"', this)");
11272
  if(w_choices_params[j])
11273
  el_choices.setAttribute("disabled", 'disabled');
11274
 
11280
  el_choices_value.setAttribute("value", w_choices_value[j]);
11281
  el_choices_value.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
11282
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+i+"_elementform_id_temp"+j+"', this.value)");
11283
+ el_choices_value.setAttribute("onpaste", "change_label_value_on_paste('"+i+"_elementform_id_temp"+j+"', this)");
11284
  if(w_value_disabled=='no' || w_choices_params[j] || (w_allow_other=="yes" && j==w_allow_other_num))
11285
  el_choices_value.setAttribute("disabled", 'disabled');
11286
 
11975
  el_choices.setAttribute("checked", w_choices_checked[j]);
11976
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
11977
  el_choices.setAttribute("onKeyUp", "change_label('"+i+"_label_element"+j+"', this.value)");
11978
+ el_choices.setAttribute("onpaste", "elem = this; change_label_name_on_paste('"+j+"', '"+i+"_label_element"+j+"', 'radio'); change_label_value_on_paste('"+i+"_elementform_id_temp"+j+"', this)");
11979
  if(w_choices_params[j])
11980
  el_choices.setAttribute("disabled", 'disabled');
11981
 
11987
  el_choices_value.setAttribute("value", w_choices_value[j]);
11988
  el_choices_value.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
11989
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+i+"_elementform_id_temp"+j+"', this.value)");
11990
+ el_choices_value.setAttribute("onpaste", "change_label_value_on_paste('"+i+"_elementform_id_temp"+j+"', this)");
11991
  if(w_value_disabled=='no' || w_choices_params[j] || (w_allow_other=="yes" && j==w_allow_other_num))
11992
  el_choices_value.setAttribute("disabled", 'disabled');
11993
 
14666
  el_choices.setAttribute("value", w_choices[j]);
14667
  el_choices.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
14668
  el_choices.setAttribute("onKeyUp", "change_label_name('"+j+"', '"+i+"_option"+j+"', this.value, 'select')");
14669
+ el_choices.setAttribute("onpaste", "elem = this; change_label_name_on_paste('"+j+"', '"+i+"_option"+j+"', 'select')");
14670
  if(w_choices_params[j])
14671
  el_choices.setAttribute("disabled", 'disabled');
14672
 
14698
  el_choices_value.setAttribute("value", w_choices_value[j]);
14699
  el_choices_value.style.cssText = "width:100px; margin:1px; padding:3px 0; border-width: 1px";
14700
  el_choices_value.setAttribute("onKeyUp", "change_label_value('"+i+"_option"+j+"', this.value)");
14701
+ el_choices_value.setAttribute("onpaste", "change_label_value_on_paste('"+i+"_option"+j+"', this)");
14702
  if(w_value_disabled=='no' || w_choices_params[j])
14703
  el_choices_value.setAttribute("disabled", 'disabled');
14704
 
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, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
- Stable tag: 1.7.52
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -279,6 +279,9 @@ The Form Maker (Pro version) has simple PayPal integration. This allows the user
279
 
280
  == Changelog ==
281
 
 
 
 
282
  = 1.7.52 =
283
  minor bugs fixed
284
 
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, admin, captcha, contact, database, email, javascript, jquery, page, plugin, survey, widget, custom form, forms creator, input, validation, send copy, form with captcha
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
+ Stable tag: 1.7.53
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
279
 
280
  == Changelog ==
281
 
282
+ = 1.7.53 =
283
+ bug in select field fixed
284
+
285
  = 1.7.52 =
286
  minor bugs fixed
287