Ready to get started?Download WordPress

Plugin Directory

Calculated Fields Form

Calculated Fields Form is a plugin for creating forms with dynamically calculated fields and display the result.

Q: What means each field in the Calculated Fields Form settings area?

A: The Calculated Fields Form's page contains detailed information about each field and customization:


Q: Where can I publish a calculated fields form?

A: You can publish the forms into pages and posts. The shortcode can be also placed into the template. Other versions of the plugin also allow publishing it as a widget.

Q: Can I create global variables to be used in the equations?

A: Yes, it is possible create global variables in javascript through the shortcode of the plugin. For example, in the following shortcode [CP_CALCULATED_FIELDS id=1 myvar=4], the id=1 identifies the form to be loaded, and myvar=4 will be a global variable in javascript with value 4, that may be used in the equations.

If your form includes the numeric field: "fieldname1", and a calculated field. The equation for the calculated field could be fieldname1*myvar

Q: Is the form processing an option, for example, to email the form data and calculated results?

A: The form processing isn't available in the version listed on this directory. There are other versions with form processing, email notifications and payment processing. You can check other versions at http://wordpress.dwbooster.com/forms/calculated-fields-form

Q: Which calculation operations are included?

A: In addition to the basic and most common operations (+,-,*,/) the following functions are also available: ABS (absolute value), ceil (rounds up to the nearest integer), floor (rounds a downwards to the nearest integer), round (integer round), prec (round with decimal precision), log (logarithm), pow (x to the power of y), sqrt (square root), max (maximum value between two numbers), min (minimum value between two numbers) and cdate (convert a value to display it as a date). For advanced users, the JavaScript ternary operator (condition ? value_if_true : value_if_false) is also supported.

Q: Is there a way to format the form in a table structure (various fields in the same line) ?

A: Into the calculated form editor click a field and into its settings there is one field named "Add Css Layout Keywords". Into that field you can put the name of a CSS class that will be applied to the field.

There are some pre-defined CSS classes to use align two, three or four fields into the same line. The CSS classes are named:


For example if you want to put two fields into the same line then specify for both fields the class name "column2". The above is valid for both the classic fields and the calculated fields.

Q: In which order are "calculated" the fields?

A: Each time a field value changes (including the calculated fields) an event is fired to re-calculate all the fields, so the order isn't relevant, just avoid creating an endless cycle between calculated fields.

The value of a calculated field will appear automatically once all the fields used in the calculations become available with a valid number or date. The calculation is instant in all cases.

Q: How can I round the calculated result to 2 decimal digits?

A: Use the "prec" function/operator for that purpose, example:


The above sample rounds the result of fieldname4*fieldname5 to two decimal digits.

Q: Can I link the calculated amount to a PayPal payment form?

A: That feature is available in the pro version that can be acquired at this page http://wordpress.dwbooster.com/forms/calculated-fields-form

Q: How can I apply CSS styles to the form fields?

A: Into the calculated form editor, click a field to edit its details, there is a setting there named "Add CSS Layout Keywords". You can add the class name into that field, so the style specified into the CSS class will be applied to that field.

Note: Don't add style rules directly there but the the name of a CSS class.

You can place the CSS class either into the CSS file of your template or into the file "cp-calculated-fields-form\css\stylepublic.css" located int o the plugin's folder.

Q: Non-latin characters aren't being displayed in the calculator form. There is a workaround?

A: New: Use the "throubleshoot area" to change the character encoding. If you want to do that manually then please change the encoding of the database table "wp_cp_calculated_fields_form_settings" to utf-8. You can do that from the PHPMyAdmin or the tool that you are using to access the database. After changing the encoding, edit again the calculator form to re-enter the characters that aren't being correctly displayed.

Q: The calculated form doesn't appear in the public website. Solution?

A: In the "throubleshoot area" (located below the list of forms in the settings area) change the "Script load method" from "Classic" to "Direct".

Q: How to create multi-page forms?

A: Use the "Page Break" field on the form builder to indicate the new pages on the form.

Q: How to display a summary of entered data?

A: Insert a summary control and select the fields to be displayed on summary.

Requires: 3.0.5 or higher
Compatible up to: 3.9.1
Last Updated: 2014-7-21
Downloads: 25,188


4 stars
4.8 out of 5 stars


60 of 60 support threads in the last two months have been resolved.

Got something to say? Need help?


Not enough data

3 people say it works.
0 people say it's broken.