Hello @snpay,
I’m sorry, but I don’t understand totally your project’s description. Could you send me the link to your webpage, and indicate exactly the fields you want modify, please?
Best regards.
Thread Starter
Sameer
(@snpay)
Actually, I did not finish my project yet. So here is a link to other site that has the same functionality I want http://www.calculator.net/bmi-calculator.html . I manage to get all results except the (Normal BMI weight range for the height) . As you can see this is not a fixed number. Here what I know so far to get this range I have to use the flowing equations:
(Height)^2 * Normal BMI range = x kg – y kg
sorry for not been clear in my first post but I hope it is more understandable now .
Hello @snpay,
Your equation should calculate the “x” and “y” values, and returns them concatenated. For example, assuming your form include an input field (fieldname1) for entering the user’s height in meters, and you want to return the range of weights (in Kg) corresponding to the coefficients 21 and 25 with the equation:
coefficient = weight/(height)^2
so
weight = coefficient*(height)^2
In this case the equation associated to the calculated field would be:
(function(){
var x = 21*POW(fieldname1,2),
y = 25*POW(fieldname1,2);
return x+'Kg - '+y+'Kg';
})()
If you need additional support implementing your formulas, I can offer you a custom coding service from my personal website:
http://cff.dwbooster.com/customization
Best regards.