Title: Minimum/Maximum Value &#8211; Doing what?
Last modified: September 11, 2018

---

# Minimum/Maximum Value – Doing what?

 *  Resolved [dropshot](https://wordpress.org/support/users/dropshot/)
 * (@dropshot)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/minimum-maximum-value-doing-what/)
 * Hi,
 * What is the Minimum/Maximum Value for?
 * I thought I could use this for validation, if the calculated number is less than
   minimum value the form could not be sent.
 * I think I was mistaking.
 * I’m using the CF7 as a simple order form. The calculator returns the order value.
   But I need to set a minimum order value limit. Is this possible with this plugin?
 * Cheers!

Viewing 1 replies (of 1 total)

 *  Plugin Author [pbosakov](https://wordpress.org/support/users/pbosakov/)
 * (@pbosakov)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/minimum-maximum-value-doing-what/#post-10720569)
 * The minimum value is not used for validation, but will simply force the calculation
   result to be a certain number if the formula resolves to something that is less
   than that.
 * For example, if your minimum value for the **a+b** calculation is **10**, you
   will get something like this:
 *     ```
       a b a+b
       1 1 10
       2 2 10
       3 3 10
       4 4 10 
       5 5 10
       6 6 12
       7 7 14
       8 8 16
       ```
   
 * You can attach your own validation Javascript to the “**wpcf7calculate**” jQuery
   event, for example:
 *     ```
       jQuery('form').on('wpcf7calculate', function() {
           var total = jQuery('input[name=total]').val();
           var minimum = 20;
           if (total < minimum) {
               jQuery('input[type=submit]').prop('disabled', true);
               alert('Order minimum is 20');
           } else {
               jQuery('input[type=submit]').prop('disabled', false);
           }
       });
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Minimum/Maximum Value – Doing what?’ is closed to new replies.

 * ![](https://ps.w.org/pvb-contact-form-7-calculator/assets/icon-256x256.png?rev
   =1837175)
 * [PVB Contact Form 7 Calculator](https://wordpress.org/plugins/pvb-contact-form-7-calculator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pvb-contact-form-7-calculator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pvb-contact-form-7-calculator/)
 * [Active Topics](https://wordpress.org/support/plugin/pvb-contact-form-7-calculator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pvb-contact-form-7-calculator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pvb-contact-form-7-calculator/reviews/)

## Tags

 * [calculation](https://wordpress.org/support/topic-tag/calculation/)
 * [minimum](https://wordpress.org/support/topic-tag/minimum/)
 * [order form](https://wordpress.org/support/topic-tag/order-form/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 1 reply
 * 2 participants
 * Last reply from: [pbosakov](https://wordpress.org/support/users/pbosakov/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/minimum-maximum-value-doing-what/#post-10720569)
 * Status: resolved