Hello @kimbedi,
Could you send me the link to the webpage where was inserted the form for checking the issue in detail, please?
Best regards.
Hello @kimbedi,
There is nothing wrong with your copy of the plugin, however, your equation is invalid.
Your current equation is:
(function () {
if (fieldname8 == "Top-Floor" && fieldname9 == "2")
return 76;
if (fieldname8 == "Middle-Floor")
return 81;
if (fieldname8 == 2.5)
return 81;
if (fieldname2 == 3)
return 89;
if (fieldname2 == 3.5)
return 97;
if (fieldname2 == 4)
return 105;
if (fieldname2 == 4.5)
return 113;
if (fieldname2 == 5)
return 121;
})()
But your form does not include any field with the name fieldname2, generating a parsing error when the plugin tries to replace the fields names by their values, and evaluate the equation.
Best regards.
sorry that should be radio button values not checkbox values
thanks
Doh
sorry about that – had a brain freeze
course that’s the issue
thanks for all your help
Hello,
I see you have fixed the equation and your form is working fine now.
Best regards.
yes thanks – one last thing I hope.
can you limit a number field to e.g. 1 or 2 decimal places?
thanks again for all your help
Hello,
Yes of course, you simply should use the “PREC” operation:
PREC(X, Y) returns the number X rounded to Y decimal places.
PREC(1.3546,3) = 1.355
PREC(1.3546,2) = 1.35
Best regards.
can’t seem to see the box in a number field where that goes?
thanks
Hello,
The operation is used in the equations, for rounding the result with X decimal places, but this feature is not included in the number fields.
Best regards.
oh ok – thanks for all your help