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

Version Description

  • Fixed: Submissions table view for long texts.
  • Fixed: Phone field in Email.
  • Fixed: Page break bug.
Download this release

Release Info

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

Code changes from version 1.12.18 to 1.12.19

admin/views/Submissions_fm.php CHANGED
@@ -1334,7 +1334,7 @@ class FMViewSubmissions_fm extends FMAdminView {
1334
  public function gen_shorter_text( $text, $chars_limit ) {
1335
  $data = array();
1336
  // Check if length is larger than the character limit.
1337
- if ( strlen($text) > $chars_limit ) {
1338
  // If so, cut the string at the character limit.
1339
  $new_text = substr($text, 0, $chars_limit);
1340
  // Trim off white space.
1334
  public function gen_shorter_text( $text, $chars_limit ) {
1335
  $data = array();
1336
  // Check if length is larger than the character limit.
1337
+ if ( strlen($text) > $chars_limit && $text == strip_tags($text) ) {
1338
  // If so, cut the string at the character limit.
1339
  $new_text = substr($text, 0, $chars_limit);
1340
  // Trim off white space.
css/form_maker_tables.css CHANGED
@@ -2458,7 +2458,7 @@ button:focus {
2458
  width: calc(100% - 50px);
2459
  word-break: break-all;
2460
  display: -webkit-inline-box;
2461
- min-width:100px;
2462
  }
2463
 
2464
  .fm_tooltip {
@@ -2480,5 +2480,3 @@ button:focus {
2480
  max-width: 200px;
2481
  word-break: break-all;
2482
  }
2483
-
2484
- >>>>>>> 3b53056a3dbd48175e7bf31a27c79e26c7e7a830
2458
  width: calc(100% - 50px);
2459
  word-break: break-all;
2460
  display: -webkit-inline-box;
2461
+ min-width: 100px;
2462
  }
2463
 
2464
  .fm_tooltip {
2480
  max-width: 200px;
2481
  word-break: break-all;
2482
  }
 
 
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.12.18
7
  * Author: WebDorado Form Builder Team
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -89,8 +89,8 @@ final class WDFM {
89
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
90
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
91
  $this->main_file = plugin_basename(__FILE__);
92
- $this->plugin_version = '1.12.18';
93
- $this->db_version = '2.12.18';
94
  $this->menu_slug = 'manage_fm';
95
  $this->prefix = 'form_maker';
96
  $this->css_prefix = 'fm_';
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.12.19
7
  * Author: WebDorado Form Builder Team
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
89
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
90
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
91
  $this->main_file = plugin_basename(__FILE__);
92
+ $this->plugin_version = '1.12.19';
93
+ $this->db_version = '2.12.19';
94
  $this->menu_slug = 'manage_fm';
95
  $this->prefix = 'form_maker';
96
  $this->css_prefix = 'fm_';
frontend/models/form_maker.php CHANGED
@@ -3340,6 +3340,7 @@ class FMModelForm_maker {
3340
  case 'type_text':
3341
  case 'type_password':
3342
  case 'type_textarea':
 
3343
  case "type_date":
3344
  case "type_date_new":
3345
  case "type_own_select":
3340
  case 'type_text':
3341
  case 'type_password':
3342
  case 'type_textarea':
3343
+ case 'type_phone_new':
3344
  case "type_date":
3345
  case "type_date_new":
3346
  case "type_own_select":
js/add_field.js CHANGED
@@ -1570,6 +1570,7 @@ function add(key, after_edit, wdid) {
1570
  }
1571
  }
1572
  }
 
1573
  if (form_view_count != 1) {
1574
  generate_page_nav(form_view);
1575
  }
@@ -1590,7 +1591,7 @@ function add(key, after_edit, wdid) {
1590
  break;
1591
  }
1592
  }
1593
-
1594
  if (form_view_count == 1) {
1595
  var icon_edit = document.createElement("span");
1596
  icon_edit.setAttribute('title', 'Edit the pagination options');
@@ -1602,7 +1603,7 @@ function add(key, after_edit, wdid) {
1602
  }
1603
  old_to_gen = form_view;
1604
  form_view_max++;
1605
- form_view_count++;
1606
 
1607
  form_view = form_view_max;
1608
 
@@ -12707,7 +12708,7 @@ function type_hidden(i, w_name, w_value, w_attr_name, w_attr_value) {
12707
  }
12708
 
12709
  function create_captcha_digits(i, w_digit) {
12710
- var label = jQuery('<label class="fm-field-label" for="captcha_digit">Digits (3 - 9)</label>');
12711
  var input = jQuery('<input class="fm-width-100" type="text" id="captcha_digit" onKeyPress="return check_isnum_3_10(event)" onKeyUp="change_captcha_digit(this.value, ' + i + ')" value="' + w_digit + '" />');
12712
  return create_option_container(label, input);
12713
  }
1570
  }
1571
  }
1572
  }
1573
+ form_view_count = jQuery('.wdform-page-and-images').length;
1574
  if (form_view_count != 1) {
1575
  generate_page_nav(form_view);
1576
  }
1591
  break;
1592
  }
1593
  }
1594
+ form_view_count = jQuery('.wdform-page-and-images').length;
1595
  if (form_view_count == 1) {
1596
  var icon_edit = document.createElement("span");
1597
  icon_edit.setAttribute('title', 'Edit the pagination options');
1603
  }
1604
  old_to_gen = form_view;
1605
  form_view_max++;
1606
+
1607
 
1608
  form_view = form_view_max;
1609
 
12708
  }
12709
 
12710
  function create_captcha_digits(i, w_digit) {
12711
+ var label = jQuery('<label class="fm-field-label" for="captcha_digit">Symbols (3 - 9)</label>');
12712
  var input = jQuery('<input class="fm-width-100" type="text" id="captcha_digit" onKeyPress="return check_isnum_3_10(event)" onKeyUp="change_captcha_digit(this.value, ' + i + ')" value="' + w_digit + '" />');
12713
  return create_option_container(label, input);
12714
  }
js/form_maker_manage_edit.js CHANGED
@@ -716,62 +716,59 @@ function formOnload(rows) {
716
 
717
  remove_whitespace(document.getElementById('take'));
718
  form_view = 1;
719
- form_view_count = 0;
720
- var pagebreak_count = jQuery('.wdform-page-and-images').length;
721
- for (i = 1; i <= pagebreak_count; i++) {
722
- if (document.getElementById('form_id_tempform_view' + i)) {
723
- form_view_count++;
724
- form_view_max = i;
725
-
726
- page_toolbar_wrap = document.createElement('div');
727
- page_toolbar_wrap.setAttribute('id', 'form_id_tempform_view_img' + i);
728
- page_toolbar_wrap.setAttribute('class', 'form_id_tempform_view_img');
729
-
730
- page_title = document.createElement('div');
731
- page_title.innerHTML = document.getElementById('form_id_tempform_view' + i).getAttribute('page_title');
732
- page_toolbar_wrap.appendChild(page_title);
733
-
734
- page_toolbar = document.createElement('div');
735
-
736
- var icon_show_hide = document.createElement('span');
737
- icon_show_hide.setAttribute('title', 'Show or hide the page');
738
- icon_show_hide.setAttribute("class", "page_toolbar dashicons dashicons-arrow-up-alt2");
739
- icon_show_hide.setAttribute('id', 'show_page_img_' + i);
740
- icon_show_hide.setAttribute('onClick', 'show_or_hide("' + i + '"); change_show_hide_icon(this);');
741
-
742
- var icon_remove = document.createElement("span");
743
- icon_remove.setAttribute('title', 'Delete the page');
744
- icon_remove.setAttribute("class", "page_toolbar dashicons dashicons-no");
745
- icon_remove.setAttribute("onclick", 'remove_page("' + i + '")');
746
-
747
- var icon_delete = document.createElement("span");
748
- icon_delete.setAttribute('title', 'Delete the page with fields');
749
- icon_delete.setAttribute("class", "page_toolbar dashicons dashicons-dismiss");
750
- icon_delete.setAttribute("onclick", 'remove_page_all("' + i + '")');
751
-
752
- var icon_edit = document.createElement("span");
753
- icon_edit.setAttribute('title', 'Edit the page');
754
- icon_edit.setAttribute("class", "page_toolbar dashicons dashicons-edit");
755
- icon_edit.setAttribute("onclick", 'edit_page_break("' + i + '")');
756
-
757
- page_toolbar.appendChild(icon_show_hide);
758
- page_toolbar.appendChild(icon_remove);
759
- page_toolbar.appendChild(icon_delete);
760
- page_toolbar.appendChild(icon_edit);
761
- page_toolbar_wrap.appendChild(page_toolbar);
762
- var cur_page = document.getElementById('form_id_tempform_view' + i).parentNode;
763
- cur_page.insertBefore(page_toolbar_wrap, cur_page.childNodes[0]);
764
- }
765
- }
766
 
767
  if (form_view_count > 1) {
768
- for (i = 1; i <= form_view_max; i++) {
769
- if (document.getElementById('form_id_tempform_view' + i)) {
770
- first_form_view = i;
771
- break;
772
- }
773
- }
774
- form_view = form_view_max;
775
  need_enable = false;
776
  generate_page_nav(first_form_view);
777
  var icon_edit = document.createElement("span");
716
 
717
  remove_whitespace(document.getElementById('take'));
718
  form_view = 1;
719
+
720
+ var form_view_count = jQuery('.wdform-page-and-images').length;
721
+
722
+ jQuery( '.wdform-page-and-images' ).each(function() {
723
+ var index = jQuery(this).find('.wdform_page').attr('id').split("form_id_tempform_view");
724
+ i = index[1];
725
+ form_view_max = i;
726
+ page_toolbar_wrap = document.createElement('div');
727
+ page_toolbar_wrap.setAttribute('id', 'form_id_tempform_view_img' + i);
728
+ page_toolbar_wrap.setAttribute('class', 'form_id_tempform_view_img');
729
+
730
+ page_title = document.createElement('div');
731
+ page_title.innerHTML = document.getElementById('form_id_tempform_view' + i).getAttribute('page_title');
732
+ page_toolbar_wrap.appendChild(page_title);
733
+
734
+ page_toolbar = document.createElement('div');
735
+
736
+ var icon_show_hide = document.createElement('span');
737
+ icon_show_hide.setAttribute('title', 'Show or hide the page');
738
+ icon_show_hide.setAttribute("class", "page_toolbar dashicons dashicons-arrow-up-alt2");
739
+ icon_show_hide.setAttribute('id', 'show_page_img_' + i);
740
+ icon_show_hide.setAttribute('onClick', 'show_or_hide("' + i + '"); change_show_hide_icon(this);');
741
+
742
+ var icon_remove = document.createElement("span");
743
+ icon_remove.setAttribute('title', 'Delete the page');
744
+ icon_remove.setAttribute("class", "page_toolbar dashicons dashicons-no");
745
+ icon_remove.setAttribute("onclick", 'remove_page("' + i + '")');
746
+
747
+ var icon_delete = document.createElement("span");
748
+ icon_delete.setAttribute('title', 'Delete the page with fields');
749
+ icon_delete.setAttribute("class", "page_toolbar dashicons dashicons-dismiss");
750
+ icon_delete.setAttribute("onclick", 'remove_page_all("' + i + '")');
751
+
752
+ var icon_edit = document.createElement("span");
753
+ icon_edit.setAttribute('title', 'Edit the page');
754
+ icon_edit.setAttribute("class", "page_toolbar dashicons dashicons-edit");
755
+ icon_edit.setAttribute("onclick", 'edit_page_break("' + i + '")');
756
+
757
+ page_toolbar.appendChild(icon_show_hide);
758
+ page_toolbar.appendChild(icon_remove);
759
+ page_toolbar.appendChild(icon_delete);
760
+ page_toolbar.appendChild(icon_edit);
761
+ page_toolbar_wrap.appendChild(page_toolbar);
762
+ var cur_page = document.getElementById('form_id_tempform_view' + i).parentNode;
763
+ cur_page.insertBefore(page_toolbar_wrap, cur_page.childNodes[0]);
764
+ });
 
765
 
766
  if (form_view_count > 1) {
767
+ firstid = jQuery('.wdform_page').first().attr('id');
768
+ firstid = firstid.split("form_id_tempform_view");
769
+ first_form_view = firstid[1]
770
+
771
+ form_view = form_view_max;
 
 
772
  need_enable = false;
773
  generate_page_nav(first_form_view);
774
  var icon_edit = document.createElement("span");
js/formmaker_div.js CHANGED
@@ -2977,13 +2977,14 @@ function generate_page_nav(id) {
2977
  form_view = id;
2978
  document.getElementById('form_id_tempform_view' + id).parentNode.style.borderWidth = "1px";
2979
 
2980
- for (t = 1; t <= form_view_max; t++) {
2981
- if (document.getElementById('form_id_tempform_view' + t)) {
2982
- page_nav = document.getElementById("form_id_temppage_nav" + t);
2983
- destroyChildren(page_nav);
2984
- generate_buttons(t);
2985
- }
2986
- }
 
2987
 
2988
  generate_page_bar();
2989
  refresh_page_numbers();
@@ -2999,12 +3000,7 @@ function remove_page_all(id) {
2999
  if (confirm('Do you want to delete the all fields in this page?')) {
3000
  form_view_elemet = document.getElementById("form_id_tempform_view" + id);
3001
  form_view_count = 0;
3002
- var pagebreak_count = jQuery(".wdform-page-and-images").length;
3003
- for (i = 1; i <= pagebreak_count; i++) {
3004
- if (document.getElementById('form_id_tempform_view' + i)) {
3005
- form_view_count++;
3006
- }
3007
- }
3008
 
3009
  if (form_view_count == 2) {
3010
  jQuery(".form_id_tempform_view_img").removeClass('form_view_show').addClass('form_view_hide');
@@ -3059,60 +3055,46 @@ function refresh_pages(id) {
3059
  temp = 1;
3060
  form_view_count = 0;
3061
  destroyChildren(document.getElementById("pages"));
3062
- var pagebreak_count = jQuery(".wdform-page-and-images").length;
3063
- for (i = 1; i <= pagebreak_count; i++) {
3064
- if (document.getElementById('form_id_tempform_view' + i)) {
3065
- form_view_count++;
3066
- }
3067
- }
3068
  if (form_view_count > 1) {
3069
- for (i = 1; i <= pagebreak_count; i++) {
3070
- if (document.getElementById('form_id_tempform_view' + i)) {
3071
- page_number = document.createElement('span');
3072
- page_number.setAttribute('id', 'page_' + i);
3073
- page_number.setAttribute('class', 'page_deactive');
3074
- page_number.innerHTML = (temp);
3075
- temp++;
3076
- document.getElementById("pages").appendChild(page_number);
3077
- }
3078
- }
3079
  }
3080
  else {
3081
  destroyChildren(document.getElementById("edit_page_navigation"));
3082
- for (i = 1; i <= pagebreak_count; i++) {
3083
- if (document.getElementById('form_id_tempform_view' + i)) {
3084
- document.getElementById('form_id_tempform_view' + i).parentNode.style.borderWidth = "0px";
3085
- document.getElementById('form_id_tempform_view' + i).style.display = "block";
3086
- document.getElementById("form_id_temppage_nav" + i).innerHTML = "";
3087
- form_view = i;
3088
- return;
3089
- }
3090
- }
3091
- }
3092
- for (i = parseInt(id) + 1; i <= pagebreak_count; i++) {
3093
- if (document.getElementById('form_id_tempform_view' + i)) {
3094
- generate_page_nav(i);
3095
- return;
3096
- }
3097
- }
3098
- for (i = parseInt(id) - 1; i > 0; i--) {
3099
- if (document.getElementById('form_id_tempform_view' + i)) {
3100
- generate_page_nav(i);
3101
- return;
3102
- }
3103
  }
 
 
 
 
 
 
 
 
3104
  }
3105
 
3106
  function refresh_pages_without_deleting(id) {
3107
  form_view_count = 0;
3108
  form_view_elemet = document.getElementById("form_id_tempform_view" + id);
3109
  wdform_row = form_view_elemet.getElementsByClassName('wdform_row');
3110
- var pagebreak_count = jQuery(".wdform-page-and-images").length;
3111
- for (i = 1; i <= pagebreak_count; i++) {
3112
- if (document.getElementById('form_id_tempform_view' + i)) {
3113
- form_view_count++;
3114
- }
3115
- }
3116
 
3117
  if (form_view_count == 2) {
3118
  jQuery(".form_id_tempform_view_img").removeClass('form_view_show').addClass('form_view_hide');
@@ -3245,11 +3227,12 @@ function make_page_steps_front()
3245
  destroyChildren(document.getElementById("pages"));
3246
  show_title=document.getElementById('el_show_title_input').checked;
3247
  k=0;
3248
- for(j=1; j<=form_view_max; j++)
3249
- {
3250
- if(document.getElementById('form_id_tempform_view'+j))
3251
- {
3252
- if(document.getElementById('form_id_tempform_view'+j).getAttribute('page_title'))
 
3253
  w_pages=document.getElementById('form_id_tempform_view'+j).getAttribute('page_title');
3254
  else
3255
  w_pages=""
@@ -3270,9 +3253,7 @@ function make_page_steps_front()
3270
  page_number.innerHTML=k;
3271
 
3272
  document.getElementById("pages").appendChild(page_number);
3273
- }
3274
- }
3275
-
3276
  }
3277
 
3278
  function make_page_percentage_front()
@@ -3293,11 +3274,11 @@ function make_page_percentage_front()
3293
 
3294
  k=0;
3295
  cur_page_title='';
3296
- for(j=1; j<=form_view_max; j++)
3297
- {
3298
- if(document.getElementById('form_id_tempform_view'+j))
3299
- {
3300
- if(document.getElementById('form_id_tempform_view'+j).getAttribute('page_title'))
3301
  w_pages=document.getElementById('form_id_tempform_view'+j).getAttribute('page_title');
3302
  else
3303
  w_pages=""
@@ -3317,8 +3298,7 @@ function make_page_percentage_front()
3317
  page_number=k;
3318
 
3319
  }
3320
- }
3321
- }
3322
  b.innerHTML=Math.round(((page_number-1)/k)*100)+'%';
3323
  div.style.width=((page_number-1)/k)*100+'%';
3324
  div_parent.appendChild(div);
2977
  form_view = id;
2978
  document.getElementById('form_id_tempform_view' + id).parentNode.style.borderWidth = "1px";
2979
 
2980
+ jQuery('.wdform-page-and-images').each(function(){
2981
+ var index = jQuery(this).find('.form_id_tempform_view_img').attr('id').split("form_id_tempform_view_img");
2982
+ t = index[1]
2983
+ page_nav = document.getElementById("form_id_temppage_nav" + t);
2984
+ destroyChildren(page_nav);
2985
+ generate_buttons(t);
2986
+
2987
+ });
2988
 
2989
  generate_page_bar();
2990
  refresh_page_numbers();
3000
  if (confirm('Do you want to delete the all fields in this page?')) {
3001
  form_view_elemet = document.getElementById("form_id_tempform_view" + id);
3002
  form_view_count = 0;
3003
+ var form_view_count = jQuery(".wdform-page-and-images").length;
 
 
 
 
 
3004
 
3005
  if (form_view_count == 2) {
3006
  jQuery(".form_id_tempform_view_img").removeClass('form_view_show').addClass('form_view_hide');
3055
  temp = 1;
3056
  form_view_count = 0;
3057
  destroyChildren(document.getElementById("pages"));
3058
+ var form_view_count = jQuery(".wdform-page-and-images").length;
 
 
 
 
 
3059
  if (form_view_count > 1) {
3060
+ jQuery( ".wdform-page-and-images" ).each(function() {
3061
+ var index = jQuery(this).find('.form_id_tempform_view_img').attr('id').split("form_id_tempform_view");
3062
+ i = index[1];
3063
+ page_number = document.createElement('span');
3064
+ page_number.setAttribute('id', 'page_' + i);
3065
+ page_number.setAttribute('class', 'page_deactive');
3066
+ page_number.innerHTML = (temp);
3067
+ temp++;
3068
+ document.getElementById("pages").appendChild(page_number);
3069
+ });
3070
  }
3071
  else {
3072
  destroyChildren(document.getElementById("edit_page_navigation"));
3073
+ jQuery( ".wdform-page-and-images" ).each(function() {
3074
+ var index = jQuery(this).find('.form_id_tempform_view_img').attr('id').split("form_id_tempform_view");
3075
+ i = index[1];
3076
+ document.getElementById('form_id_tempform_view' + i).parentNode.style.borderWidth = "0px";
3077
+ document.getElementById('form_id_tempform_view' + i).style.display = "block";
3078
+ document.getElementById("form_id_temppage_nav" + i).innerHTML = "";
3079
+ form_view = i;
3080
+ return;
3081
+ });
 
 
 
 
 
 
 
 
 
 
 
 
3082
  }
3083
+ jQuery( ".wdform-page-and-images" ).each(function() {
3084
+ var index = jQuery(this).find('.form_id_tempform_view_img').attr('id').split("form_id_tempform_view");
3085
+ i = index[1];
3086
+ if( i != id ) {
3087
+ generate_page_nav(i);
3088
+ return;
3089
+ }
3090
+ });
3091
  }
3092
 
3093
  function refresh_pages_without_deleting(id) {
3094
  form_view_count = 0;
3095
  form_view_elemet = document.getElementById("form_id_tempform_view" + id);
3096
  wdform_row = form_view_elemet.getElementsByClassName('wdform_row');
3097
+ var form_view_count = jQuery(".wdform-page-and-images").length;
 
 
 
 
 
3098
 
3099
  if (form_view_count == 2) {
3100
  jQuery(".form_id_tempform_view_img").removeClass('form_view_show').addClass('form_view_hide');
3227
  destroyChildren(document.getElementById("pages"));
3228
  show_title=document.getElementById('el_show_title_input').checked;
3229
  k=0;
3230
+
3231
+ jQuery( '.wdform-page-and-images' ).each(function() {
3232
+ var index = jQuery(this).find('.wdform_page').attr('id');
3233
+ j = index.split("form_id_tempform_view")[1];
3234
+
3235
+ if(document.getElementById('form_id_tempform_view'+j).getAttribute('page_title'))
3236
  w_pages=document.getElementById('form_id_tempform_view'+j).getAttribute('page_title');
3237
  else
3238
  w_pages=""
3253
  page_number.innerHTML=k;
3254
 
3255
  document.getElementById("pages").appendChild(page_number);
3256
+ });
 
 
3257
  }
3258
 
3259
  function make_page_percentage_front()
3274
 
3275
  k=0;
3276
  cur_page_title='';
3277
+ jQuery( '.wdform-page-and-images' ).each(function() {
3278
+ var index = jQuery(this).find('.wdform_page').attr('id');
3279
+ j = index.split("form_id_tempform_view")[1];
3280
+
3281
+ if(document.getElementById('form_id_tempform_view'+j).getAttribute('page_title'))
3282
  w_pages=document.getElementById('form_id_tempform_view'+j).getAttribute('page_title');
3283
  else
3284
  w_pages=""
3298
  page_number=k;
3299
 
3300
  }
3301
+ });
 
3302
  b.innerHTML=Math.round(((page_number-1)/k)*100)+'%';
3303
  div.style.width=((page_number-1)/k)*100+'%';
3304
  div_parent.appendChild(div);
js/main_div_front_end.js CHANGED
@@ -551,12 +551,7 @@ function fm_initilize_form(form_id) {
551
  }
552
 
553
  function display_none_form_views_all(form_id) {
554
- var pagebreak_count = jQuery(".wdform-page-and-images").length;
555
- for( t = 1; t <= pagebreak_count; t++ ) {
556
- if(document.getElementById(form_id+'form_view'+t)) {
557
- document.getElementById(form_id+'form_view'+t).parentNode.style.display="none";
558
- }
559
- }
560
  }
561
 
562
  function generate_page_bar(form_view, form_id, form_view_count, form_view_max) {
@@ -1992,21 +1987,18 @@ function formOnload(form_id) {
1992
  }
1993
 
1994
  function fm_document_ready(form_id) {
1995
- var pagebreak_count = jQuery(".wdform-page-and-images").length;
1996
- for( i = 1; i <= pagebreak_count; i++ ) {
1997
- if (document.getElementById(form_id + 'form_view' + i)) {
1998
- window['form_view_count' + form_id]++;
1999
- window['form_view_max' + form_id] = i;
2000
- }
2001
- }
2002
  if (window['form_view_count' + form_id] > 1) {
2003
- for (i = 1; i <= window['form_view_max' + form_id]; i++) {
2004
- if (document.getElementById(form_id + 'form_view' + i)) {
2005
- window['first_form_view' + form_id] = i;
2006
- break;
2007
- }
2008
- }
2009
- generate_page_nav(window['first_form_view' + form_id], form_id, window['form_view_count' + form_id], window['form_view_max' + form_id]);
2010
  }
2011
  fm_initilize_form(form_id);
2012
  }
551
  }
552
 
553
  function display_none_form_views_all(form_id) {
554
+ jQuery("#form"+form_id+" .wdform-page-and-images").css('display','none');
 
 
 
 
 
555
  }
556
 
557
  function generate_page_bar(form_view, form_id, form_view_count, form_view_max) {
1987
  }
1988
 
1989
  function fm_document_ready(form_id) {
1990
+ var pagebreak_count = jQuery("#form"+form_id+" .wdform-page-and-images").length;
1991
+ window['form_view_count' + form_id] = pagebreak_count;
1992
+ var maxid = jQuery("#form"+form_id+" .wdform_page").last().attr("id");
1993
+ maxid = maxid.split("form_view");
1994
+ window['form_view_max' + form_id] = maxid[1];
1995
+
1996
+
1997
  if (window['form_view_count' + form_id] > 1) {
1998
+ firstid = jQuery("#form"+form_id+" .wdform_page").first().attr("id");
1999
+ firstid = firstid.split("form_view");
2000
+ window['first_form_view' + form_id] = firstid[1];
2001
+ generate_page_nav(window['first_form_view' + form_id], form_id, window['form_view_count' + form_id], window['form_view_max' + form_id]);
 
 
 
2002
  }
2003
  fm_initilize_form(form_id);
2004
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,10web,wdsupport,formmakersupport
3
  Tags: form, form builder, contact form, custom form, feedback, contact, contact forms, captcha, email, form manager, forms, survey
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
- Stable tag: 1.12.18
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -145,29 +145,58 @@ After adding your form fields and updating your form, you are able to Undo or Re
145
 
146
  = What is Form Maker used for? =
147
 
 
 
 
 
148
  Form Maker can be used for creating multiple types of forms, including contact forms, evaluation, application forms, quizzes/tests or surveys, online order forms and etc. Form Maker includes various types of fields which can be modified and/or edited.
149
 
150
- = Does Form Maker have support for conditional logic and how can I Use them? =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
 
152
- Yes, Form Maker supports Conditional fields option. Users may find this feature in Form Options menu. The structure of conditional fields is the following: You can specify and/or show/hide a field, when condition is true and provide conditions below, e.g. Show &quot;How many visitors will you have&quot; if &quot;Will you have visitors&quot; is &quot;Yes&quot;.
153
 
154
- Go to Form Options of your form, then click Conditional Fields tab to start the setup.
155
 
156
- Press Add Condition button to configure the first condition of your form.
157
 
158
- Show/Hide select box represents the action which will be completed, if all or any of the condition statements are fulfilled. Use the second drop-down menu to select the field which will be shown or hidden.
159
 
160
- Click the little Plus (+) icon to add the statement of your form condition.
161
 
162
- For example, let&#39;s assume there is a Single Choice field on your form titled Inquiry type. And you wish to show Message field in case users choose Support Request as the type of their inquiry. The condition you configure needs to have the following logic:
163
 
164
- Show [Message] if [all] of the following match: [Inquiry type] is [Support request]
165
 
166
- Make sure to hit Update after setting up Conditional Fields.
167
 
168
- = What stylings do the forms include? =
169
 
170
- Form Maker plugin comes with 14 customizable themes, which you can use to design your forms. Each theme provides a set of user-friendly options to change font size, alignment of the form, colors, modify paddings and more. You can edit the existing themes, or create your own by clicking Add New button.
 
 
 
 
 
 
 
171
 
172
  To set a initial default theme for your forms, press on the star icon next to the theme you would like to use. You can always change the theme by editing your forms.
173
 
@@ -188,14 +217,15 @@ Options of Form Maker Themes are divided into the following sections:
188
 
189
  You can preview the design of each theme under Preview block. In case you created forms with multiple pages, you can change its Pagination Type, setting it to Step, Percentage or None.
190
 
191
- Custom CSS option Form Maker Themes lets you write additional CSS code and customize your forms further. All CSS rules apply to this editor. Make sure to press Save after modifying the theme.
192
 
193
  = Does Form Maker use auto-respondent feature? =
194
 
195
- You can use Email Options of Form Maker to send a fully customizable letter to the submitter. The entries can be included within the email. Just select the form you want to edit &gt; Form Options &gt; Email Options.
196
- Form Maker plugin lets you send submitted information to one or multiple email addresses. Furthermore, you can also send a confirmation email to the submitter and let them know you have received their application.
197
 
198
- Enable Send E-mail from Form Options &gt; Email Options tab and start configuring mailing settings. Most options require the same configuration for Email to Administrator and Email to User. However, there are a few settings which are unique.
 
 
199
 
200
  **Email to Administrator**
201
 
@@ -215,11 +245,17 @@ Important! In case you do not have an email input created from User Info Fields
215
 
216
  **Edit Post.** Click this link to edit the content of Email Verification post. This is is the page, where users will be redirected after they click on the verification link in user email.
217
 
218
- = What payment gateways does Form Maker support? =
 
 
219
 
220
- *Payment support is available in the Premium version of the plugin*. Here you can let users to make payments through your Form Maker form. Default payment gateway of Form Maker is PayPal.Select PayPal as Payment Method from Form Options &gt; Payment Options tab and configure corresponding options. Also, you can easily integrate the plugin with Stripe using its Stripe Integration add-on.
221
 
222
- _Note:_ In order to have a functional payment form, first and foremost, you need to have Payment Fields added to it.
 
 
 
 
223
 
224
  **Payment Currency.** Choose the currency to be used for the payments made through your form. Note, that the selected currency symbol will only display on the front-end of the published form.
225
 
@@ -229,9 +265,23 @@ _Note:_ In order to have a functional payment form, first and foremost, you need
229
 
230
  **Paypal email**. Provide the email address of a valid PayPal account. This account will be used as the recipient of payments through your form.
231
 
232
- = How can I export the submitted data of the forms? =
 
 
 
 
 
 
233
 
234
- Form Maker has export CSV/XML options, which allow to export submitted data in corresponding form. Go to your plugins list in WordPress toolbar &gt; select Form Maker &gt; Submissions &gt; Select form &gt; Click Export to button &gt; Save the file.
 
 
 
 
 
 
 
 
235
 
236
  = Can user be redirected to another page after submitting the form? =
237
 
@@ -249,8 +299,44 @@ Navigate to Form Options &gt; Actions After Submissions tab, and select one of t
249
 
250
  Form Maker uses modern verification methods, such as ReCaptcha and invisible ReCaptcha. Please note that will need to obtain ReCaptcha keys to use these options. Otherwise you can use Simple Captcha and Arithmetical Captcha which use standard word verification and arithmetical expressions respectively.
251
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  == Changelog ==
253
 
 
 
 
 
 
254
  = 1.12.18 =
255
  * Changed: improved Form Submissions view: added tooltips for long labels of form fields.
256
  * Added: detailed descriptions of form fields inside the form editor
3
  Tags: form, form builder, contact form, custom form, feedback, contact, contact forms, captcha, email, form manager, forms, survey
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.12.19
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
145
 
146
  = What is Form Maker used for? =
147
 
148
+ **Form Maker** is a modern and intuitive free online application form creator plugin developed for WordPress. It lets you build personalized, perfect-looking responsive forms with its elegant drag and drop interface.
149
+
150
+ You can create web forms free of additional coding, with just a few clicks. The functionality of Form Maker is excellent for any kind of online questionnaires.
151
+
152
  Form Maker can be used for creating multiple types of forms, including contact forms, evaluation, application forms, quizzes/tests or surveys, online order forms and etc. Form Maker includes various types of fields which can be modified and/or edited.
153
 
154
+ Whether you are a WordPress beginner or a web guru, Form Maker is the perfect choice. The dynamic web form builder plugin comes with clean visual tools and options, and you do not need to have any web development skills to build a form.
155
+
156
+ = How can I create a form with Form Maker? =
157
+
158
+ Navigate to **Form Maker > Forms** page to build your very first form. This contact form creator plugin provides a few sample forms, which you can quickly edit and publish.
159
+
160
+ Using **Form Maker > Forms** page, you can manage existing forms, perform **Bulk Actions,** such as **Publish, Unpublish, Duplicate** or **Delete.** Select the necessary form, choose the bulk action, then press **Apply.** Also, you can search for your form by writing its title in the top **Search** input.
161
+
162
+ Press **Add New** button from this page, and you will be redirected to **Form Editor** page. Make sure to write a **Title** for this form, then choose the **Theme** which sets the appearance of your form. In case you wish to display the form with the same style as your website theme, select **Inherit From Website Theme** option from **Theme** select box.
163
+
164
+ To add a new field with this application form creator, drag **New Field** button to the area where you wish to place the field. The field editor toolbox will be opened automatically. Click on the field set from which you are going to choose the field, for instance, **User Info Fields.** Press **Name** button from this field set to add a Name input to your form. Then click **Add** and the field will be placed to the area you selected initially.
165
+
166
+ It is also possible to search among the fields when adding a new field to your form. Use **Filter** input at the top left corner of fields toolbox. For example, you can search "phone" and all Phone fields will be filtered.
167
+
168
+ = Can I add a custom header with text and image above my form? =
169
+
170
+ This dynamic form builder lets you have a nice header section on your forms, which can contain additional content, as well as images with animations. Click on **Form Header** bar of your form to open its toolbox and provide a **Title.** This is the form heading, which will appear above your form. In addition, you can write a **Description** to appear right below the Title. This comes handy, in case you need to write an introduction for your form.
171
+
172
+ You can also have an image on your form header and set it to appear with an animation effect. Press **Add Image** button to upload and select a picture from **WordPress Media Library.** Then choose the animation effect using Image Animation option.
173
 
174
+ In case you don’t want the **Header Image** to appear on smartphones and tablets, mark **Hide Image on Mobile** option as checked.
175
 
176
+ Don’t forget to **Publish/Update** the form to save the change you made.
177
 
178
+ = Does Form Maker support for conditional logic and how can I use it? =
179
 
180
+ Yes, another fantastic feature of this custom form creator plugin is its **Conditional Fields.** This lets you **show** or **hide** fields of your form based on certain selections submitter makes.
181
 
182
+ The structure of conditional fields in this contact form generator form builder is the following: You can specify and/or show/hide a field, when condition is true and provide conditions below, e.g. Show "How many visitors will you have" if "Will you have visitors" is "Yes".
183
 
184
+ Go to **Form Options** of your form, then click **Conditional Fields** tab to start the setup. Press **Add Condition** button to configure the first condition of your form.
185
 
186
+ **Show/Hide** select box represents the action which will be completed, if all or any of the condition statements are fulfilled. Use the second drop-down menu to select the field which will be shown or hidden.
187
 
188
+ Click the little **Plus (+)** icon to add the statement of your form condition.
189
 
190
+ For example, let’s assume there is a **Single Choice** field on your form titled **Inquiry type.** And you wish to show **Message** field in case users choose **Support Request** as the type of their inquiry. The condition you configure needs to have the following logic:
191
 
192
+ *Show [Message] if [all] of the following match:*
193
+ *[Inquiry type] is [Support request]*
194
+
195
+ Make sure to hit **Update** after setting up Conditional Fields.
196
+
197
+ = What styling options do the forms include? =
198
+
199
+ This secure form builder plugin comes with **14 customizable themes,** which you can use to design your forms. Each theme of Form Maker provides a set of user-friendly options to change font size, alignment of the form, colors, modify paddings and more. You can edit the existing themes, or create your own by clicking **Add New** button.
200
 
201
  To set a initial default theme for your forms, press on the star icon next to the theme you would like to use. You can always change the theme by editing your forms.
202
 
217
 
218
  You can preview the design of each theme under Preview block. In case you created forms with multiple pages, you can change its Pagination Type, setting it to Step, Percentage or None.
219
 
220
+ Custom CSS option in Themes of this offline form builder lets you write additional CSS code and customize your forms further. All CSS rules apply to this editor. Make sure to press Save after modifying the theme.
221
 
222
  = Does Form Maker use auto-respondent feature? =
223
 
224
+ You can use **Email Options** of Form Maker to send a fully customizable letter to the submitter. The entries can be included within the email. Just select the form you want to edit, then navigate to **Form Options &gt; Email Options.**
 
225
 
226
+ This html5 form builder plugin lets you send submitted information to one or multiple email addresses. Furthermore, you can also send a confirmation email to the submitter and let them know you have received their application.
227
+
228
+ Enable Send E-mail from **Form Options &gt; Email Options** tab and start configuring mailing settings. Most options require the same configuration for Email to Administrator and Email to User. However, there are a few settings which are unique.
229
 
230
  **Email to Administrator**
231
 
245
 
246
  **Edit Post.** Click this link to edit the content of Email Verification post. This is is the page, where users will be redirected after they click on the verification link in user email.
247
 
248
+ = Can I create an online order form with this plugin? =
249
+
250
+ *Payment support is available in the Premium version of the plugin.*
251
 
252
+ In order to have a functional payment form, first and foremost, you need to have **Payment Fields** added to it. This way, Form Maker plugin will turn into an online order form creator quickly and easily. Build compact shopping forms, hotel reservation, online application or ticket sales forms with this feature.
253
 
254
+ Note: You need to set up **Form Options > Payment Options** of your form in order to receive payments on your account. Follow the steps described on this section to do that.
255
+
256
+ Configuring Payment Options, you can use Form Maker as an order form generator and let users make payments through your form. Default payment gateway of Form Maker is **PayPal.** Select **PayPal** as **Payment Method** from Form **Options &gt; Payment Options** tab and configure corresponding options.
257
+
258
+ Also, you can easily integrate the plugin with Stripe using its [Stripe Integration add-on](https://web-dorado.com/products/wordpress-form/add-ons/stripe.html).
259
 
260
  **Payment Currency.** Choose the currency to be used for the payments made through your form. Note, that the selected currency symbol will only display on the front-end of the published form.
261
 
265
 
266
  **Paypal email**. Provide the email address of a valid PayPal account. This account will be used as the recipient of payments through your form.
267
 
268
+ = Where can I check the submissions of my forms? =
269
+
270
+ **Submissions** page of this HTML form generator plugin lets you view the full record of submissions of each form. Choose your form from **Select a form** drop-down box to display its submitted information. Furthermore, you are able to view **Statistics** of **Single/Multiple Choice** and **Select Box** fields.
271
+
272
+ **Entries / Conversion Rate / Views.** These attributes of **Submissions** page will help you quickly view the statistics of the selected form.
273
+
274
+ **Export to CSV / Export to XML.** You are able to download all submissions of each form in **CSV** or **XML** format by clicking on these buttons.
275
 
276
+ **Show Filters.** Form Maker lets you filter form submissions by values provided by user, e.g. submitter’s email address, name and more. Press **Show Filters** button, write the values you wish to search with, then press **Search.** Click **Reset** button to clear the filters.
277
+
278
+ **Add/Remove Columns.** This button will help you customize the columns which display in submissions of the selected form. Click on the button and unmark the columns you wish to hide.
279
+
280
+ *Note: Adding/Removing columns does not delete columns from the submissions table. It just hides them until you activate them again.*
281
+
282
+ **Block IPs / Unblock IPs.** In case you are receiving spam submissions from certain IP addresses, you can block these addresses. Mark all spam submissions as checked, choose **Block IPs** option from **Bulk Actions** and press **Apply.** You are able to unblock these IP addresses anytime.
283
+
284
+ **Delete.** If you wish to remove some or all submissions of a form, mark them as checked and select **Delete** option from **Bulk Actions.** Clicking **Apply** will delete these entries permanently.
285
 
286
  = Can user be redirected to another page after submitting the form? =
287
 
299
 
300
  Form Maker uses modern verification methods, such as ReCaptcha and invisible ReCaptcha. Please note that will need to obtain ReCaptcha keys to use these options. Otherwise you can use Simple Captcha and Arithmetical Captcha which use standard word verification and arithmetical expressions respectively.
301
 
302
+ = Can I use Form Maker as a registration form creator? =
303
+
304
+ You can register users on your website with the help of [WordPress Registration add-on](https://web-dorado.com/products/wordpress-form/add-ons/registration.html). Install the add on and use it alonside the free version of Form Maker plugin.
305
+
306
+ You are able to ask users to provide username, email address and password for their account. The registration of users is done upon completing the form created by this visual form builder plugin.
307
+
308
+ = Is it possible to publish a form as a widget? =
309
+
310
+ You can publish your form not only using **Display Options** of this web form builder plugin, but also as a widget. Go to **Appearance > Widgets** page to place your form on any widget area of your website theme.
311
+
312
+ Search for **Form Maker widget** and drag it to the widget area where you wish to place your form. Specify a **Title** for the widget and choose the form you wish to publish. Press **Save** after making these changes.
313
+
314
+ = Can the form submissions be shown to site visitors? =
315
+
316
+ **Pro version** of Form Maker plugin allows you to publish submissions on front-end of your website.
317
+
318
+ This form creator plugin lets you select user roles which will be able to view the published submissions. This can be done from **Form Options > General Options** section. Also, in the same section, you are able to choose fields to hide from front-end submissions.
319
+
320
+ Firstly, add/edit the page or post, where you wish to publish the submissions of form. Then press **Add Submission** button from the top of the post editor.
321
+
322
+ **Select a Form.** Use this drop-down to choose the form, submissions of which you would like to publish.
323
+
324
+ **Select Date Range.** You can display submissions from a specific date range. Use this option to select **From** and **To** dates.
325
+
326
+ **Select fields.** Use this option to choose which columns to show on the form. Uncheck the options, which you need to hide on front-end submissions.
327
+
328
+ **Export to / Show.** These two settings are responsible for showing the rest of the attributes of front-end submissions. You can enable/disable **CSV/XML** export buttons, **Statistics, Views, Conversion Rate** and other additional information.
329
+
330
+ After configuring all necessary options, press **Insert.** Publish your page with submissions, and you will be able to view them on front-end.
331
+
332
+
333
  == Changelog ==
334
 
335
+ = 1.12.19 =
336
+ * Fixed: Submissions table view for long texts.
337
+ * Fixed: Phone field in Email.
338
+ * Fixed: Page break bug.
339
+
340
  = 1.12.18 =
341
  * Changed: improved Form Submissions view: added tooltips for long labels of form fields.
342
  * Added: detailed descriptions of form fields inside the form editor