fitnesspreponline
Forum Replies Created
-
Forum: Plugins
In reply to: [Calculated Fields Form] Caculated FieldsI tried that, but it still doesn’t show the result on multiple lines. Here’s my code:
(function(){
var cal = ”;
if(fieldname5==1)
cal = (10*(fieldname8*0.454)+6.25*(((fieldname6*12)+fieldname7)*2.54)-5*fieldname2+5);
if(fieldname5==2)
cal = (10*(fieldname8*0.454)+6.25*(((fieldname6*12)+fieldname7)*2.54)-5*fieldname2-161) ;if(fieldname10==1)
cal = cal * 1.2;
else if(fieldname10==2)
cal = cal * 1.375;
else if(fieldname10==3)
cal = cal * 1.55;
else if(fieldname10==4)
cal = cal * 1.725;
jQuery(‘.equation-result’).html(“Your TDEE is ” + ROUND(cal) + “\n” +” Calories.”);
return cal;
})();Forum: Plugins
In reply to: [Calculated Fields Form] How to code if else in a function@codepeople what if I want to save the result of the calculation in cal and then display it to the user?
EDIT: Nevermind, I figured it out. Thank you!- This reply was modified 8 years, 10 months ago by fitnesspreponline.
Forum: Plugins
In reply to: [Calculated Fields Form] How to add a form to a websiteI figured it out, thank you very much! @codepeople
Forum: Plugins
In reply to: [Calculated Fields Form] How to add a form to a websiteThank you for the reply. I have already created the form, I just need help on how to publish it to my website, what kind of content should I use to add it to my website? @codepeople
- This reply was modified 8 years, 10 months ago by fitnesspreponline.