Answered
I'm fairly new to Adobe LiveCycle and am looking for some assistance with formcalc.
I am using the following formcalc formula to calculate cubic feet:
Round(Length[0]*Width[0]*Height[0]/1728,2)
When the answer is zero, I'd like the CubicFeet[0] field to remain blank. Right now the field is constantly displaying a 0 until I enter values into the length, width, or height fields.
I am also calculating the density by dividing weight by cubic feet. In order to avoid a divide by zero error, I am using the following formcalc formula:
if ((Weight[0]>"0") & (CubicFeet[0]>"0")) then round(Weight[0]/CubicFeet[0],2) endif
I'd also like the Density[0] field to remain blank if the answer is 0.
I'd greatly appreciate any help I could get with this as it's making me very frustrated!
Thank you!
George Kaiser