Hello @fitnesspreponline,
Not directly into a calculated field, because the calculated fields use input tags, and the input tags accepts single line texts. So, if you want to display the equation’s result as a text with multiple lines, my recommendation is to use the calculated field as auxiliary, but display the result in another field like a “HTML Content”:
– Inserts a “HTML Content” field in the form, with the following piece of code as its content:
<div class="equation-result"></div>
– Now, modifies the equation as follows:
(function () {
var result='';
if (fieldname5 == 1)
result = 10*fieldname8*0.454+ 6.25*(fieldname6*12+fieldname7)*2.54-5*fieldname2+5;
if (fieldname5 == 2)
result = 10*fieldname8*0.454+6.25*(fieldname6*12+fieldname7) * 2.54-5*fieldname2-161;
jQuery('.equation-result').html(result);
return result;
})();
– Finally, as the calculated field is used as an auxiliary field, you should tick the checkbox: “Hide Field From Public Page” in its properties.
Best regards.