Calculated field problem
-
I have two fields that need to talk one another, and I am stuck for a solution.
Link to calculator
(Click on “Tree Removal with or without its stump ground” then hit NextHere is my problem:
If the user inputs any number into the “Trunk circumference” field, then touches anything else in the form, it resets.
Trunk circumference code:
`(function(){
if(fieldname1 > 0) return prec(fieldname1*3.14,2);
})();`The value only stays if the “Or, Trunk diameter” field is filled in. I need the value of the “Trunk circumference” to stay, if the user DOES NOT type anything into the “Or, Trunk diameter” field.
My goal:
Have the circumference calculated if the user enters in a diameter. If they don’t, then don’t do any calculations, and just use the inputted value of the circumference.Help would be severely appreciated. Thank you
- The topic ‘Calculated field problem’ is closed to new replies.