Calculated Fields Form - Version 1.1.101

Version Description

  • Modifies the Textarea control to preserve the changes of line accessing the raw field's value.
  • Fixes an issue in the calculated fields formatted automatically with manually entered values.
  • Removes the extra columns and rows in the generated CSV files from the Messages section (Professional, Developer, and Platinum versions).
  • Implements the new control "HTML Content DS" to display plain HTML content read from an external data source (Developer and Platinum versions).
  • Modifies the "CFF - WooCommerce" add-on to support the "WooCommerce One Page Checkout" plugin (Developer and Platinum versions).
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Calculated Fields Form
Version 1.1.101
Comparing to
See all releases

Code changes from version 1.1.100 to 1.1.101

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://cff.dwbooster.com
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 6.0
7
- Stable tag: 1.1.100
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -965,6 +965,14 @@ A: Please, follow the steps below:
965
 
966
  == Changelog ==
967
 
 
 
 
 
 
 
 
 
968
  = 1.1.100 =
969
 
970
  * Removes the h2 and span tags for form title and description if they are empty.
@@ -1012,9 +1020,4 @@ A: Please, follow the steps below:
1012
 
1013
  * Fixes an issue in the summary field that allowed evaluating scripts.
1014
  * Fixes an issue by reordering fields into DIV and Fieldset controls.
1015
- * Modifies the payment gateways add-ons (Platinum version).
1016
-
1017
- = 1.1.91 =
1018
-
1019
- * Modifies the date/time control to allow defining custom error messages.
1020
- * Fixes an issue in the Date/Time DS field when it receives dates in text format (Developer and Platinum versions).
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 6.0
7
+ Stable tag: 1.1.101
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
965
 
966
  == Changelog ==
967
 
968
+ = 1.1.101 =
969
+
970
+ * Modifies the Textarea control to preserve the changes of line accessing the raw field's value.
971
+ * Fixes an issue in the calculated fields formatted automatically with manually entered values.
972
+ * Removes the extra columns and rows in the generated CSV files from the Messages section (Professional, Developer, and Platinum versions).
973
+ * Implements the new control "HTML Content DS" to display plain HTML content read from an external data source (Developer and Platinum versions).
974
+ * Modifies the "CFF - WooCommerce" add-on to support the "WooCommerce One Page Checkout" plugin (Developer and Platinum versions).
975
+
976
  = 1.1.100 =
977
 
978
  * Removes the h2 and span tags for form title and description if they are empty.
1020
 
1021
  * Fixes an issue in the summary field that allowed evaluating scripts.
1022
  * Fixes an issue by reordering fields into DIV and Fieldset controls.
1023
+ * Modifies the payment gateways add-ons (Platinum version).
 
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,13 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
3
  = 1.1.100 =
4
 
5
  * Removes the h2 and span tags for form title and description if they are empty.
1
  == Changelog ==
2
 
3
+ = 1.1.101 =
4
+
5
+ * Modifies the Textarea control to preserve the changes of line accessing the raw field's value.
6
+ * Fixes an issue in the calculated fields formatted automatically with manually entered values.
7
+ * Removes the extra columns and rows in the generated CSV files from the Messages section (Professional, Developer, and Platinum versions).
8
+ * Implements the new control "HTML Content DS" to display plain HTML content read from an external data source (Developer and Platinum versions).
9
+ * Modifies the "CFF - WooCommerce" add-on to support the "WooCommerce One Page Checkout" plugin (Developer and Platinum versions).
10
+
11
  = 1.1.100 =
12
 
13
  * Removes the h2 and span tags for form title and description if they are empty.
cp_calculatedfieldsf_free.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
- Version: 1.1.100
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
@@ -16,7 +16,7 @@ if(!defined('WP_DEBUG') || true != WP_DEBUG)
16
  }
17
 
18
  // Defining main constants
19
- define('CP_CALCULATEDFIELDSF_VERSION', '1.1.100' );
20
  define('CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
21
  define('CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
22
  define('CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
+ Version: 1.1.101
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
16
  }
17
 
18
  // Defining main constants
19
+ define('CP_CALCULATEDFIELDSF_VERSION', '1.1.101' );
20
  define('CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
21
  define('CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
22
  define('CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
css/style.css CHANGED
@@ -73,6 +73,8 @@
73
  .cff-button-drag.fdiv::before,
74
  #fdiv.itemForm::before{content:"\eb73";}
75
  .cff-button-drag.fhtml::before,
 
 
76
  #fhtml.itemForm::before{content:"\e86f";}
77
  .cff-button-drag.ffile::before,
78
  #ffile.itemForm::before{content:"\e2c6";}
73
  .cff-button-drag.fdiv::before,
74
  #fdiv.itemForm::before{content:"\eb73";}
75
  .cff-button-drag.fhtml::before,
76
+ .cff-button-drag.fhtmlds::before,
77
+ #fhtmlds.itemForm::before,
78
  #fhtml.itemForm::before{content:"\e86f";}
79
  .cff-button-drag.ffile::before,
80
  #ffile.itemForm::before{content:"\e2c6";}
js/fbuilder-pro-public.jquery.js CHANGED
@@ -1,4 +1,4 @@
1
- $.fbuilder['version'] = '1.1.100';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
1
+ $.fbuilder['version'] = '1.1.101';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
js/fields-public/05_fbuilder.ftextarea.js CHANGED
@@ -26,7 +26,13 @@
26
  raw = raw || false;
27
  no_quotes = no_quotes || false;
28
  var e = $('[id="'+this.name+'"]:not(.ignore)');
29
- if(e.length) return $.fbuilder.parseValStr(e.val().replace(/[\n\r]+/g, ' '), raw, no_quotes);
 
 
 
 
 
 
30
  return 0;
31
  }
32
  }
26
  raw = raw || false;
27
  no_quotes = no_quotes || false;
28
  var e = $('[id="'+this.name+'"]:not(.ignore)');
29
+ if(e.length)
30
+ {
31
+ var v = $.fbuilder.parseValStr(e.val(), raw, no_quotes);
32
+ if(!raw) v = v.replace(/[\n\r]+/g, ' ');
33
+ else if(!no_quotes) v = v.replace(/^"/, "`").replace(/"$/, "`");
34
+ return v;
35
+ }
36
  return 0;
37
  }
38
  }
js/fields-public/fbuilder.fcalculated.js CHANGED
@@ -95,7 +95,7 @@
95
  me.formatDynamically
96
  )
97
  {
98
- var v = me.val();
99
  this.value = $.fbuilder.calculator.format(v, me.configuration());
100
  }
101
  try
@@ -530,7 +530,7 @@
530
  if(!/^\s*$/.test(value))
531
  {
532
  var symbol = '', isNumeric = false;
533
- if($.isNumeric(value) && !/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)/.test(value))
534
  {
535
  isNumeric = true;
536
  if(value < 0) symbol = '-';
95
  me.formatDynamically
96
  )
97
  {
98
+ var v = me.val(true, true);
99
  this.value = $.fbuilder.calculator.format(v, me.configuration());
100
  }
101
  try
530
  if(!/^\s*$/.test(value))
531
  {
532
  var symbol = '', isNumeric = false;
533
+ if($.isNumeric(value) && !/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)/.test(value))
534
  {
535
  isNumeric = true;
536
  if(value < 0) symbol = '-';