These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Zero Values

ggaul2001
Registered: Apr 11 2007
Posts: 8

How do I suppress zero values in a form. It is an expense report form and there are lots of caluclations, when u look at the form all the cells are filled with 0.00 until a caluclation is made... I would prefer it to be blank until the caluclation is made.

My Product Information:
Acrobat Pro 6.0.0, Mobile
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
It is the calculation scripts that are setting the zeros. You have to set it up so that the calculated field values are set to "null" when there are no legitimate entered values.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ggaul2001
Registered: Apr 11 2007
Posts: 8
Thanks for the answer... now, how do I do that. I looked in the properties of the fileds I am talking about and could find no place to set the values to "null"....help!
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The exact solution depends on the kind of forms technology your using, but I'm willing to bet that your form was built in LiveCycle Designer since this isn't a typical AcroForms issue.

If this is correct then here's one way to do it.

// JavaScript in the Calculation event// Sum of Total1 and Total2 fieldsthis.rawValue = Total2.rawValue + Total1.rawValue;if(this.rawValue == 0)this.rawValue = null;

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script