Title: Dont calculate when empty
Last modified: May 4, 2021

---

# Dont calculate when empty

 *  Resolved [testowekonto123](https://wordpress.org/support/users/testowekonto123/)
 * (@testowekonto123)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/dont-calculate-when-empty/)
 * Hello,
 * how can i block calculate button when fields are empty? I want to make button
   clickable only when all fields are filled with data.
 * Best regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/dont-calculate-when-empty/#post-14399290)
 * Hello [@testowekonto123](https://wordpress.org/support/users/testowekonto123/)
 * If you are referring to the calculate button, you want the equations to be evaluated
   only when the required fields are filled, please, follow the steps below:
 * 1. Select the button in the form, and tick the “button” option as its type.
 * 2. Enter the following piece of code as its onclick event:
 * `if(jQuery(this.form).valid()) EVALEQUATIONS(this.form);`
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Dont calculate when empty’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form - AI Form Builder for WordPress - Contact, Payment, Quote, Quiz & More](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [hide](https://wordpress.org/support/topic-tag/hide/)
 * [require()](https://wordpress.org/support/topic-tag/require/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/dont-calculate-when-empty/#post-14399290)
 * Status: resolved