Sliders with calculated result question

  • Savaload
    Asked on December 4, 2014 at 9:59 AM

    I have 4 sliders

    Length, Width, Height & Weight

    My calculation works out Length x Weight x Height  / 6000 = ##result##

    The weight slider is not part of the calculation

    I need to have an answer that gives the result from the highest of the two.

    So:

    if (Length x Weight *x Height  / 6000 = ##result##) but Weight = more than the ##result## how do I make the weight become the result and / or vice versa??

    Thanks, Don

  • Charlie
    Replied on December 4, 2014 at 11:25 AM

    Hi Don,

    Unfortunately, the widget "Sliders with calculated result" does not have rules or condition-like feature, and not be able to compare results to each other.

    But, I do have a workaround in mind. Here is what I have:

    -Use single sliders

    -Have an input field result as a basis of comparison

    -Set up conditions to show which one is higher.

     

    1. Add a slider from the widget search bar. I edited the max value to 200 and renamed them as appropriately.

    Sliders with calculated result question Image 1 Screenshot 60

    2. I added 3 fields for basis of results.

    Calculation Result - computed formula for slider 1, 2 and 3.

    Compare Result Basis- we subtract calculation result to weight.

    Logic: if "Compare Result Basis" is a positive integer it means that calculation result is greater than weight, if negative then the weight is greater than the calculation result.

    Final Result- we will output here the condition that we have.

    Sliders with calculated result question Image 2 Screenshot 71

    3. Calculation Result formula. 

    Sliders with calculated result question Image 3 Screenshot 82

    4. Compare result basis field to where we check if the result is positive or negative integer.

    Sliders with calculated result question Image 4 Screenshot 93

    5. We then add a condition to where we identify which one is greater, the calculated result or the weight.

    Sliders with calculated result question Image 5 Screenshot 104

     

    You can check how the form works here: http://form.jotformpro.com/form/43374691396971 

    You can clone my form using this guide: http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

     

    I hope this helps. Let us know if you need further assistance on this.

    Thank you.

  • carambamoreno
    Replied on March 1, 2015 at 7:51 PM

    Wow. Great support.

  • Charlie
    Replied on March 2, 2015 at 12:23 AM

    @carambamoreno

    Thank you for your feedback on this post. If you have questions or concerns, please do not hesitate to open up a new thread, we'll be more than glad to help you. :)