• Resolved Graicifyd

    (@graicifyd)


    How can I use

    getField(x)

    to set the default value for min and max of a slider with the results from calculated fields. One calculated field for min and another for max.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @graicifyd

    Assuming the slider field is the fieldname1, and you want to assign the numbers 5 and 15 as its min and max, respectively, from the calculated field equation.

    In this case, you can use the following piece of code as the field’s equation:

    (function(){
    getField('fieldname1').set_min(5);
    getField('fieldname1').set_max(15);
    })()

    Best regards.

    Thread Starter Graicifyd

    (@graicifyd)

    Thank you for your prompt response.

    I mean that if I want the value in fieldname12 to be min and and the value of fieldname13 to be max of a slider fieldname15, how will I go about it?

    Thread Starter Graicifyd

    (@graicifyd)

    I got it, thank you.

    Plugin Author codepeople

    (@codepeople)

    Hello @graicifyd

    In that case, you can enter the fields’ names, fieldname12 and fieldname13 directly through the “min” and “max” attributes of the slider field, respectively.

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set min and max value of slider from calculated field’ is closed to new replies.