• Resolved rphrus

    (@rphrus)


    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

    (@rphrus)

    solved

    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

    (@codepeople)

    Hi @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.