I am making a form fillable and have a field that calculates the sum of other fields. It defaults to $0.00 when no information is entered. I have clients that would rather print the form and fill it out manually and I don't want that $0.00 to show. I realize I need to use a validation script to change to null if 0.00 but I am a java script dummy. Could you give me the exact formula to get this to work?
var f = this.getField("quantity");
var g = this.getField("price");
if (f.value != 0)
event.value = f.value * g.value
else
event.value =""
Hope this helps.
—ted
The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.