Calculated Fields Form - Version 1.1.74

Version Description

  • Fixes an issue with the default values in DropDown, Radio Buttons, and Checkbox fields.
  • Modifies the add-ons Google Place, Signature, and reCAPTCHA to prevent conflicts with the DIVI pages builder (Developer and Platinum versions).
  • Modifies the SERVER-SIDE Equations add-on (Developer and Platinum versions).
Download this release

Release Info

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

Code changes from version 1.1.73 to 1.1.74

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: 5.9
7
- Stable tag: 1.1.73
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -965,6 +965,12 @@ A: Please, follow the steps below:
965
 
966
  == Changelog ==
967
 
 
 
 
 
 
 
968
  = 1.1.73 =
969
 
970
  * Fixes a minor issue with the next/previous pages feature in multi-page forms.
@@ -1020,9 +1026,4 @@ A: Please, follow the steps below:
1020
  * Modifies the NTHROOT operation and implements the PRINTFORM operation for printing the form area.
1021
  * Fixes a minor issue to allow entering negative values as the sliders' default values.
1022
  * Fixes a minor issue in the DataTable DS fields on small screens.
1023
- * Modifies the tags submissiondate_mmddyyyy, submissiondate_ddmmyyyy, currentdate_mmddyyyy, and currentdate_ddmmyyyy to display date only, and include the submissiontime and currenttime tags to include the corresponding time components (Professional, Developer, and Platinum versions of the plugin).
1024
-
1025
- = 1.1.63 =
1026
-
1027
- * Improves the advanced equations editor on mobiles devices.
1028
- * Fixes an issue with the advanced equations editor and the Firefox browser.
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: 5.9
7
+ Stable tag: 1.1.74
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.74 =
969
+
970
+ * Fixes an issue with the default values in DropDown, Radio Buttons, and Checkbox fields.
971
+ * Modifies the add-ons Google Place, Signature, and reCAPTCHA to prevent conflicts with the DIVI pages builder (Developer and Platinum versions).
972
+ * Modifies the SERVER-SIDE Equations add-on (Developer and Platinum versions).
973
+
974
  = 1.1.73 =
975
 
976
  * Fixes a minor issue with the next/previous pages feature in multi-page forms.
1026
  * Modifies the NTHROOT operation and implements the PRINTFORM operation for printing the form area.
1027
  * Fixes a minor issue to allow entering negative values as the sliders' default values.
1028
  * Fixes a minor issue in the DataTable DS fields on small screens.
1029
+ * Modifies the tags submissiondate_mmddyyyy, submissiondate_ddmmyyyy, currentdate_mmddyyyy, and currentdate_ddmmyyyy to display date only, and include the submissiontime and currenttime tags to include the corresponding time components (Professional, Developer, and Platinum versions of the plugin).
 
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,11 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
3
  = 1.1.73 =
4
 
5
  * Fixes a minor issue with the next/previous pages feature in multi-page forms.
@@ -516,13 +522,4 @@
516
  = 1.0.446 =
517
 
518
  * Fixes a conflict with third party plugins that overwrite the POW operation in the plugin.
519
- * Modifies the WooCommerce add-on to allow its use with WooCommerce Booking and similar plugins (Developer and Platinum versions of the plugin).
520
-
521
- = 1.0.445 =
522
-
523
- * Fixes an issue with the Sliders for ranges.
524
- * Improves the mathematical operations.
525
-
526
- = 1.0.444 =
527
-
528
- * Fixes some compatibility issues with PHP8.
1
  == Changelog ==
2
 
3
+ = 1.1.74 =
4
+
5
+ * Fixes an issue with the default values in DropDown, Radio Buttons, and Checkbox fields.
6
+ * Modifies the add-ons Google Place, Signature, and reCAPTCHA to prevent conflicts with the DIVI pages builder (Developer and Platinum versions).
7
+ * Modifies the SERVER-SIDE Equations add-on (Developer and Platinum versions).
8
+
9
  = 1.1.73 =
10
 
11
  * Fixes a minor issue with the next/previous pages feature in multi-page forms.
522
  = 1.0.446 =
523
 
524
  * Fixes a conflict with third party plugins that overwrite the POW operation in the plugin.
525
+ * Modifies the WooCommerce add-on to allow its use with WooCommerce Booking and similar plugins (Developer and Platinum versions of the plugin).
 
 
 
 
 
 
 
 
 
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.73
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.73' );
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.74
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.74' );
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 ) );
js/fbuilder-pro-public.jquery.js CHANGED
@@ -1,4 +1,4 @@
1
- $.fbuilder['version'] = '1.1.73';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
@@ -248,7 +248,7 @@
248
  for( var fieldId in data )
249
  {
250
  item = formObj.getItem(fieldId+id);
251
- try{ if('setVal' in item) item.setVal(data[fieldId], true); $('[name*="'+item.name+'"]').trigger('trigger_ds'); }
252
  catch(err){}
253
  }
254
 
1
+ $.fbuilder['version'] = '1.1.74';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
248
  for( var fieldId in data )
249
  {
250
  item = formObj.getItem(fieldId+id);
251
+ try{ if('setVal' in item) item.setVal(data[fieldId], true, true); $('[name*="'+item.name+'"]').trigger('trigger_ds'); }
252
  catch(err){}
253
  }
254
 
js/fields-public/06_fbuilder.fcheck.js CHANGED
@@ -130,8 +130,11 @@
130
  }
131
  return (typeof v == 'object' && typeof v['length'] !== 'undefined') ? v : ((v) ? (($.isNumeric(v)) ? v : '"'+v+'"') : 0);
132
  },
133
- setVal:function( v, nochange )
134
  {
 
 
 
135
  var t, n = this.name, c = 0;
136
  if( !$.isArray( v ) ) v = [v];
137
  $( '[id*="'+n+'"]' ).prop( 'checked', false );
@@ -139,7 +142,7 @@
139
  {
140
  t = (new String(v[i])).replace(/(['"])/g, "\\$1");
141
  if(0 < this.max && c+1 == this.max) break;
142
- $( '[id*="'+n+'"][vt="'+t+'"],[id*="'+n+'"][value="'+t+'"]' ).prop( 'checked', true );
143
  }
144
  this.enable_disable();
145
  if(!nochange) $( '[id*="'+n+'"]' ).change();
130
  }
131
  return (typeof v == 'object' && typeof v['length'] !== 'undefined') ? v : ((v) ? (($.isNumeric(v)) ? v : '"'+v+'"') : 0);
132
  },
133
+ setVal:function( v, nochange, _default )
134
  {
135
+ _default = _default || false;
136
+ nochange = nochange || false;
137
+
138
  var t, n = this.name, c = 0;
139
  if( !$.isArray( v ) ) v = [v];
140
  $( '[id*="'+n+'"]' ).prop( 'checked', false );
142
  {
143
  t = (new String(v[i])).replace(/(['"])/g, "\\$1");
144
  if(0 < this.max && c+1 == this.max) break;
145
+ $( _default ? '[id*="'+n+'"][vt="'+t+'"]' : '[id*="'+n+'"][value="'+t+'"]' ).prop( 'checked', true );
146
  }
147
  this.enable_disable();
148
  if(!nochange) $( '[id*="'+n+'"]' ).change();
js/fields-public/07_fbuilder.fradio.js CHANGED
@@ -122,11 +122,14 @@
122
  if( e.length ) return $.fbuilder.parseValStr( (raw == 'vt') ? e.attr('vt') : e.val(), raw );
123
  return 0;
124
  },
125
- setVal:function( v, nochange )
126
  {
 
 
 
127
  var t = (new String(v)).replace(/(['"])/g, "\\$1"), n = this.name;
128
  $( '[id*="'+n+'"]' ).prop( 'checked', false );
129
- $( '[id*="'+n+'"][vt="'+t+'"],[id*="'+n+'"][value="'+t+'"]' ).prop( 'checked', true );
130
  if(!nochange) $( '[id*="'+n+'"]' ).change();
131
  },
132
  setChoices:function(choices)
122
  if( e.length ) return $.fbuilder.parseValStr( (raw == 'vt') ? e.attr('vt') : e.val(), raw );
123
  return 0;
124
  },
125
+ setVal:function( v, nochange, _default )
126
  {
127
+ _default = _default || false;
128
+ nochange = nochange || false;
129
+
130
  var t = (new String(v)).replace(/(['"])/g, "\\$1"), n = this.name;
131
  $( '[id*="'+n+'"]' ).prop( 'checked', false );
132
+ $( _default ? '[id*="'+n+'"][vt="'+t+'"]' : '[id*="'+n+'"][value="'+t+'"]' ).prop( 'checked', true );
133
  if(!nochange) $( '[id*="'+n+'"]' ).change();
134
  },
135
  setChoices:function(choices)
js/fields-public/08_fbuilder.fdropdown.js CHANGED
@@ -160,16 +160,18 @@
160
  }
161
  return (typeof v == 'object' && typeof v['length'] !== 'undefined') ? v : ((v) ? (($.isNumeric(v)) ? v : '"'+v+'"') : 0);
162
  },
163
- setVal:function( v, nochange )
164
  {
 
 
 
165
  if( !$.isArray( v ) ) v = [v];
166
- var t, n = this.name;
167
  for(var i in v)
168
  {
169
  t = (new String(v[i])).replace(/(['"])/g, "\\$1");
170
- $( '[id="'+n+'"] OPTION[vt="'+t+'"],[id="'+n+'"] OPTION[value="'+t+'"]' ).prop( 'selected', true );
171
  }
172
-
173
  if(!nochange) $( '[id="'+n+'"]' ).change();
174
  },
175
  setChoices:function(choices)
160
  }
161
  return (typeof v == 'object' && typeof v['length'] !== 'undefined') ? v : ((v) ? (($.isNumeric(v)) ? v : '"'+v+'"') : 0);
162
  },
163
+ setVal:function( v, nochange, _default )
164
  {
165
+ _default = _default || false;
166
+ nochange = nochange || false;
167
+
168
  if( !$.isArray( v ) ) v = [v];
169
+ var t, n = this.name, selector;
170
  for(var i in v)
171
  {
172
  t = (new String(v[i])).replace(/(['"])/g, "\\$1");
173
+ $( _default ? '[id="'+n+'"] OPTION[vt="'+t+'"]' : '[id="'+n+'"] OPTION[value="'+t+'"]' ).prop( 'selected', true );
174
  }
 
175
  if(!nochange) $( '[id="'+n+'"]' ).change();
176
  },
177
  setChoices:function(choices)
languages/calculated-fields-form-en_US.mo CHANGED
Binary file
languages/calculated-fields-form-en_US.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2022-03-15 01:42+0100\n"
5
- "PO-Revision-Date: 2022-03-15 01:42+0100\n"
6
  "Last-Translator: CodePeople\n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2022-03-21 23:15+0100\n"
5
+ "PO-Revision-Date: 2022-03-21 23:15+0100\n"
6
  "Last-Translator: CodePeople\n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"