Hello @ajaysingh121
I’ll try to describe the process with a hypothetical use case.
Assuming the slider field is the fieldname1 with min value 0 and max value 100, the equation in the calculate field is fieldname2+fieldname3, and you want to assign the equation’s result to the slider field.
In this hypothetical use case the equation can be implemented as follows:
(function(){
var result = fieldname2+fieldname3,
slider_value = MAX(0, MIN(result, 100));
getField(fieldname1|n).setVal(slider_value);
return result;
})()
Note the use of the |n modifier in the equation. The plugin replaces the fields’ names in the equations with their corresponding values to use in the mathematical operations. The |n modifier tells the plugin you are referring to the fields’ names instead of their values.
Best regards.
can you discribe breafily how to implement the equition in the form
https://allfeescalculator.com?cff-form=56
Hello @ajaysingh121
Your form does not include a slider field, and you have not described the equation that determines the value of the slider field.
Best regards.
Hello @ajaysingh121
In your form, the slider field is the fieldname8 and not the fieldnamer7. So, the equation would be:
(function(){
var result = fieldname6,
slider_value = MAX(0, MIN(result, 100));
getField(fieldname8|n).setVal(slider_value);
return result;
})()
Best regards.
is this posible like in the calculator at the slider show the date as three part
https://flo.health/tools/ivf-due-date-calculator
Hello @ajaysingh121
You should insert three slider fields, side by side, please, watch the videos by visiting the following links. And then, you should assign the values to the corresponding field:
https://youtu.be/5wguFUR4pD8
https://youtu.be/G8Of-V49pAQ
Best regards.