Calculation Options
Written by the Divi Engine Documentation Team
Calculation Options
We offer a range of options for calculating form data and presenting it to both form submitters and site administrators. These options are designed to provide flexibility and optimize performance based on your specific needs:
- Calculate Server Side [On]: This option involves passing the form data back to the server for calculation. It ensures that the server handles the computation, providing a reliable and robust method for processing calculations. Server Side calculations also permit advanced functions which can be found here.
- Send AJAX [On]: Enabling this setting triggers an AJAX call when all fields referenced in your formula have a value. This approach minimizes the number of AJAX calls by ensuring calculations are performed only when all necessary parameters are present, optimizing efficiency.
- Send AJAX [Off]: With this setting, an AJAX call is made each time a field is updated. While this may result in more AJAX calls, it's important to note that calculations won't always return immediately. This is because all required parameters may not have been met at the time of the call.
- Calculate Server Side [Off]: When this option is selected, the form data is calculated on the front-end using JavaScript. This offers a marginally faster calculation response. Additionally, it proves beneficial when using caching plugins that may interfere with AJAX calls to
admin-ajax.php
. This client-side computation ensures responsiveness and can be advantageous in scenarios where server-side processing is not ideal.
These configurable options allow you to tailor the calculation process to meet your specific performance and functionality requirements. Whether you prioritize server-side reliability, AJAX optimization, or client-side speed, our diverse settings ensure a seamless integration of calculations within your forms.
What's next?
Next up is to create your formula. Click Here to learn how to format your formula.