• Resolved trde

    (@trde)


    I wlould like to use slider value with step = 10 but step should not to be a calculated it should work in this way:

    0-30 = 0$
    40 = + 30$
    50 = + 60$
    60 = + 90$
    70 = +120$


    From 0-30 free, over 30, every 10 more + 30$. How to do it?

    • This topic was modified 5 years, 5 months ago by trde.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @trde

    It is pure mathematics, for example, assuming the slider field is the fieldname1, the equation associated to the calculated field would be:

    
    MAX(fieldname1-30)/10*30
    

    Best regards.

    Thread Starter trde

    (@trde)

    OK, woorks good! Thank you. But I have also one question. Can I Set this slider to add +50$ (not +30$) to every step ONLY if in fieldname10 (radio) last position with value = 500 is selected?

    Plugin Author codepeople

    (@codepeople)

    Hello @trde

    Yes of course, you only should to use the conditional operation as part of the equation:

    
    MAX(fieldname1-30)/10*IF(fieldname10 == 500, 50, 30)
    

    I’m sorry, but if you need additional professional support you should contact me through my website: contact me

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slider – step 10 but different value’ is closed to new replies.