• Resolved andysb72

    (@andysb72)


    Hi. I’ve got the Basic version installed for client. He wants a quote generated and email sent with quote. (emailing the quote after the persons name and email are captured).

    But here’s the rub, he is selling windows and he wants the potential costumer to be able to enter into a form field the EXACT width and height of the window they need (one input for width, another for height). The Price/value of the number entered would fit into a range. For instance, a width between 15in and 20in would be $100, between 20.25 – 25in would be $125. Is that possible (either with the Basic version or Premium)?

    I did see a thread called “value range” that seemed to pose this question, but the poster “resolved” it without posting a solution.

    thanks for your help!

    Andy

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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(15<= width && width <= 20 ) return 100;
    if(20< width && width <= 25 ) return 125;
    
    return 'Invalid Width';
    })()

    Note: In the previous equation you can include other conditional statements for different ranges.

    Best regards.

    Thread Starter andysb72

    (@andysb72)

    Thanks so much!

    Is there a way to allow decimal values to be entered? The inch values could include halves and quarters (15.5, 22.125, etc) . The error “Please enter only digits” pops up.

    Plugin Author codepeople

    (@codepeople)

    Hi @andysb72,

    You simply should select the “number” option for the attribute: “Number Format” in the number controls, instead the “digits” option.

    Best regards.

    Thread Starter andysb72

    (@andysb72)

    Awesome. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Assigning values to a range of numbers’ is closed to new replies.