Hide $0.00 Field Total on Print
I am having trouble getting the total field to not show on print so the user can fill the form out manually without having to cross it out. I've tried a couple of the custom validation scripts suggested in these boards but still cannot get it to work.

I've tried:
if (event.value==0) event.value = "";
And this:
var fields = ["Stipend", "Meal per diem", "Mileage total"];
var allEmpty = true;
var total = 0;
for (var i in fields) {
var f = this.getField(fields);
if (f.valueAsString!="Off") {
total+=Number(f.valueAsString);
allEmpty = false;
}
}
if (allEmpty) event.value = "";
else event.value = total;
