Creating a Diet Calculator, Getting Error with Certain Inputs
-
I’m creating a complex series of questions to solve a simple equation. I’ve gotten it to work 99% of the time, but for certain inputs the calculated box remains blank.
fieldname5 -checkboxes
Choice Text: Yes – Value = 24.5, No – Value = 0.0
Value to submit: choice valuefieldname4 – dropdown
Choices Text: Indoor Cage – Value = 81, Indoor Aviary = 103, Outdoor Aviary Summer = 130.3, Outdoor Aviary Winter = 152.5, Free-living = 155.6
Value to submit: Choice Valuefieldname6 – number
Number Format: numberfieldname1 – calculated field
(function(){
if(fieldname6 > 0) return prec((fieldname5+fieldname4)*(POW(fieldname6*0.001), 0.73),2)
})();
Whenever I select No, an aviary or greater option, and put a greater weight (i.e. 1000) the fieldname1 comes back blank. Looking for assistance please! Thank you!
The page I need help with: [log in to see the link]
- The topic ‘Creating a Diet Calculator, Getting Error with Certain Inputs’ is closed to new replies.