Title: value range
Last modified: September 2, 2016

---

# value range

 *  Resolved [rphrus](https://wordpress.org/support/users/rphrus/)
 * (@rphrus)
 * [10 years ago](https://wordpress.org/support/topic/value-range-2/)
 * Hi,
    I have fieldname1=enter size in inches if fieldname1=up to 5 then display“
   no size” if fieldname1=6-10 then display “size 1” if fieldname1=11 and up then
   display “size 2”
 * How can I create this?
 * Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [rphrus](https://wordpress.org/support/users/rphrus/)
 * (@rphrus)
 * [10 years ago](https://wordpress.org/support/topic/value-range-2/#post-8137542)
 * solved
 *  [andysb72](https://wordpress.org/support/users/andysb72/)
 * (@andysb72)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/value-range-2/#post-8237046)
 * Hi. How do you solve this? I’m trying to set of a value range for window dimensions.
   For example, any number entered between 10 and 20 (inches) would have a value
   of 100 (dollars), 21-30in would be $150, etc.
 * -Andy
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/value-range-2/#post-8237996)
 * Hi [@andysb72](https://wordpress.org/support/users/andysb72/),
 * The required equations can be implemented even with the free version of the plugin,
   however, for sending the notification emails with the information collected through
   the form, is need the professional version of the plugin.
 * Now, the equation:
 * In your description you are using only the width to estimate the window’s price,
   so, I’ll use only the width in the equation. Assuming that the field for width
   is the fieldname1, the equation associated to the calculated field would as follows:
 *     ```
       (function(){
       var width = fieldname1;
   
       if(10<= width && width <= 20 ) return 100;
       if(20< width && width <= 30 ) return 150;
   
       return 'Invalid Width';
       })()
       ```
   
 * Note: In the previous equation you can include other conditional statements for
   different ranges.
 * Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘value range’ 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/)

 * 3 replies
 * 3 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/value-range-2/#post-8237996)
 * Status: resolved