How to create calculations with sliders?

  • ritechsystem
    Asked on June 5, 2017 at 9:51 AM

    Hi guys!

    I have two questions:

    1) i set al checkbox to moltiplicate the number for slider times.

    now all work well but if i select a second checkbox and start moving slider the  sum change from the begining.

    2) How can disable slider if checkbox is empty?

    Have i look to my form thanks a lot!

  • Nik_C
    Replied on June 5, 2017 at 12:05 PM

    1) I checked your form but I'm not sure what is actually happening there since I don't see where the calculation is changing with slider changes. How to calculation should be could you please give us more information? For example this two:

    How to create calculations with sliders? Image 1 Screenshot 30

    So you will multiply those two and you add each pair, right? And the sum should show here:

    How to create calculations with sliders? Image 2 Screenshot 41

    2) Unfortunately, it is not possible to conditionally disable slider widget field like other fields.

    We'll wait for your response regarding the first question.

    Thank you!

  • ritechsystem
    Replied on June 6, 2017 at 4:55 AM

    about first question...yes! how do it?

  • Nik_C
    Replied on June 6, 2017 at 5:56 AM

    You could add one more text field for calculation of each checkbox and slider:

    How to create calculations with sliders? Image 1 Screenshot 40

    Use conditions to multiply them:

    How to create calculations with sliders? Image 2 Screenshot 51

    And then add all those in Form calculations widget:

    How to create calculations with sliders? Image 3 Screenshot 62

    That's how you'll get total.

    And that should work for you.

    If you have any further questions please let us know.

    Thank you!