Create Real-Time Calculated Fields for Forms in WordPress

Calculate field values in real time with formulas, math functions, repeatable sections, and price formatting.

  • Real-time calculations Update calculated values instantly on your form.
  • Simple to advanced math Use everything from basic arithmetic to trigonometric functions.
  • Works with numeric fields Supports fields that accept numeric input, including rating and progress.
  • Calculate from fields or variables Use numeric output from fields, variables, and dates.
  • Repeatable section support Use calculations with values inside repeatable sections.
  • Built-in calculator Create formulas with field insertion, math variables, and editing controls.

Create calculated fields in your forms in WordPress with the #calc function in WS Form. Calculations update in real time and can handle everything from simple addition to more complex trigonometric functions.

Calculated fields work with all fields that can accept numeric input, including rating and progress. You can calculate from any field or variable that outputs a numeric value, including dates, and use calculations in settings such as Default Value, Label, Placeholder, Help, Minimum, Maximum, and field content for Text Editor and HTML fields.

WS Form also includes a calculator to help build formulas. It can insert compatible fields, add math variables, and supports calculations in repeatable sections. If you need to display a result as a price, you can format it using your currency settings.

  • Use #calc formulas

    Add a #calc(…) variable to calculate a field value in real time.

  • Place values in settings

    Use calculated values in field labels, default values, placeholders, help text, minimums, maximums, and supported field content.

  • Compatible field types

    Common field types for calculated values include Number, Price, Text, Text Area, Text Editor, and HTML.

  • Insert other field values

    Reference other fields in your formula with #field(…) variables.

  • Round calculation results

    Use #round to control decimal places and tidy JavaScript floating point results.

  • Display results as prices

    Use #ecommerce_price(…) to show calculation results with your currency settings.

  • Repeatable totals and averages

    WS Form automatically sums values from a field in a repeatable section, and you can use #section_row_count(…) to calculate an average.

  • Debug console logging

    Full logging to the debug console helps when working with calculations.

Real Customer Reviews

Trusted by thousands of WordPress professionals.

  • I tried a couple of other pro form builders before this, and they didn't work for me. I then bought the PRO version of WS Forms and it fixed all my issues.

    ykf1
  • For me, by far the best form system for WordPress! I am super happy with the product and the excellent support. I can only recommend everyone to try this form builder!

    AgenturWP
  • The developers of WS Form thought through how to make the system as powerful and flexible as possible while still being easy to use.

    weldonlh

Frequently Asked Questions

What are calculated fields in WS Form?

Calculated fields use the #calc(…) function to create field values that are updated in real time.

What kinds of calculations can WS Form handle?

WS Form can handle everything from simple addition to more complex trigonometric functions.

Which fields work with calculated values?

Calculated fields work with all fields that can accept numeric input, including rating and progress. Common field types you might use include Number, Price, Text, Text Area, Text Editor, and HTML.

Can I calculate from other fields or dates?

Yes. You can calculate from any field or variable that can output a numeric value, including dates.

Can calculated fields work with repeatable sections?

Yes. Calculations work with repeatable sections. WS Form automatically sums values for a field in a repeatable section, and #section_row_count(…) can be used to calculate an average.

How do I add calculated fields in WS Form?

Open a field setting and enter a #calc(…) variable in a supported setting such as Default Value. WS Form also includes a calculator to help build formulas: Learn how to use calculated fields.