Good morning,
We offer foam cut to size, so customers need to enter the measurements to calculate the price.
On the other hand, they can add a layer of viscoelastic. To calculate your price, in some cases, we need to be able to calculate the hypotenuse of a right triangle (Pythagorean Theorem).
https://nuevo.hiperespuma.es/tienda/espuma/corte-a-medida/asiento-en-disminucion/
Can anyone help us and indicate how we can add this calculation in a form managed with Formidableforms?
Thank you very much
Gema Queralt
You can do this with one line of jQuery code. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot
And when the triangle is not right-angled?
https://nuevo.hiperespuma.es/tienda/espuma/corte-a-medida/silla-trapecio/
We want to give the customer the possibility to put the viscoelastic layer on the surface that generates the C field (second image on the website).
Thank you very much
Gema Queralt
The Math.hypot() static method returns the square root of the sum of squares of its arguments. It works with any geometric shape with 3-sides.
Please login or Register to submit your answer