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

Conditional formatting

tdunn
Registered: Aug 3 2007
Posts: 14

I have added a text box to a form that calculates the sum of other fields. When the fields are blank it defaults to $0.00. Is there any way to format this field to be blank if it is 0.00? I have some clients that prefer to print the form and fill it out manually and we don't want that $0.00 to be there.

My Product Information:
Acrobat Pro 7.0.7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, in the validate script reset the field value to "null" if it is zero.

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

tdunn
Registered: Aug 3 2007
Posts: 14
Could you tell me exactly what I need to enter? I am a javascript dummy.
skoper
Registered: Sep 5 2007
Posts: 1
I'd just like to know how to get a text field to show the sum of several other fields without having to write a script.
In Acrobat 5 there was a popup box that let you add each numeric box to the total. I can't figure out how to do that in Adobe 8.
I want to add boxes across, and then add them top to bottom. Why is it so difficult. The instructions say you can only do calculations with text or combo fields, but then never define what a combo field is. I think I found it accidentally.
I don't want to have to write a script. I just want to identify the boxes that go into the calculation and let the program do the rest.
This is not an improvement.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Skoper, please read this article.

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/form_calculations/

In the future please do not post off topic comments. Create a new topic.

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