Version Description
- Fixed: Bug on checking if Address field is required.
Download this release
Release Info
Developer | webdorado |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.13.1 |
Comparing to | |
See all releases |
Code changes from version 1.13.0 to 1.13.1
- form-maker.php +3 -3
- frontend/models/form_maker.php +2 -2
- js/main_div_front_end.js +5 -3
- readme.txt +4 -1
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.13.
|
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
|
@@ -95,8 +95,8 @@ final class WDFM {
|
|
95 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
96 |
$this->front_urls = $this->get_front_urls();
|
97 |
$this->main_file = plugin_basename(__FILE__);
|
98 |
-
$this->plugin_version = '1.13.
|
99 |
-
$this->db_version = '2.13.
|
100 |
$this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
|
101 |
$this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
|
102 |
$this->menu_slug = 'manage' . $this->menu_postfix;
|
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.13.1
|
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
|
95 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
96 |
$this->front_urls = $this->get_front_urls();
|
97 |
$this->main_file = plugin_basename(__FILE__);
|
98 |
+
$this->plugin_version = '1.13.1';
|
99 |
+
$this->db_version = '2.13.1';
|
100 |
$this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
|
101 |
$this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
|
102 |
$this->menu_slug = 'manage' . $this->menu_postfix;
|
frontend/models/form_maker.php
CHANGED
@@ -1713,10 +1713,10 @@ class FMModelForm_maker {
|
|
1713 |
}
|
1714 |
case 'type_address': {
|
1715 |
$value = '*#*#*#';
|
1716 |
-
$element = isset( $_POST[ 'wdform_' . $i . "_street1" . $id ] ) ?
|
1717 |
if ( isset( $element ) ) {
|
1718 |
$value = $element;
|
1719 |
-
if ( $required &&
|
1720 |
$missing_required_field = TRUE;
|
1721 |
}
|
1722 |
break;
|
1713 |
}
|
1714 |
case 'type_address': {
|
1715 |
$value = '*#*#*#';
|
1716 |
+
$element = isset( $_POST[ 'wdform_' . $i . "_street1" . $id ] ) ? esc_html( $_POST[ 'wdform_' . $i . "_street1" . $id ] ) : NULL;
|
1717 |
if ( isset( $element ) ) {
|
1718 |
$value = $element;
|
1719 |
+
if ( $required && $value === '' ) {
|
1720 |
$missing_required_field = TRUE;
|
1721 |
}
|
1722 |
break;
|
js/main_div_front_end.js
CHANGED
@@ -1259,9 +1259,11 @@ function wd_is_filled(form_id, field_id, all_pages) {
|
|
1259 |
var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
|
1260 |
jQuery.each(element, function(i, elem){
|
1261 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
|
|
|
|
1265 |
not_filled[wdid] = elem;
|
1266 |
}
|
1267 |
}
|
1259 |
var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id];
|
1260 |
jQuery.each(element, function(i, elem){
|
1261 |
if(all_pages || x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') != "none") {
|
1262 |
+
var element_value = jQuery(elem).val();
|
1263 |
+
if (typeof element_value != "undefined") {
|
1264 |
+
element_value = jQuery.trim(element_value);
|
1265 |
+
}
|
1266 |
+
if ( element_value == "" ) {
|
1267 |
not_filled[wdid] = elem;
|
1268 |
}
|
1269 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,10web,wdsupport,formmakersupport
|
|
3 |
Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.0
|
6 |
-
Stable tag: 1.13.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -452,6 +452,9 @@ Where **{{field_id}}** is the ID of the field you wish to prefill. Also, **{{par
|
|
452 |
|
453 |
== Changelog ==
|
454 |
|
|
|
|
|
|
|
455 |
= 1.13.0 =
|
456 |
* Added: Enable/Disable option for Form header.
|
457 |
* Added: Tax option for Stripe payments.
|
3 |
Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 1.13.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
452 |
|
453 |
== Changelog ==
|
454 |
|
455 |
+
= 1.13.1 =
|
456 |
+
* Fixed: Bug on checking if Address field is required.
|
457 |
+
|
458 |
= 1.13.0 =
|
459 |
* Added: Enable/Disable option for Form header.
|
460 |
* Added: Tax option for Stripe payments.
|