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

Force SUM total field to stay NULL

apextech
Registered: Jul 12 2007
Posts: 2

I have a field that uses FormCalc sum to add multiple fields. When a users enters a number into one of these fields and then clears it a 0 is left in the SUM total field. Is there anyway to make the SUM total field stay NULL?

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This FormCalc script will work in a Calculation Event. If the sum is zero or less the sum field is blank (i.e., null)

var sum = Num1 + Num2if ( (Num1 + Num2) < 0) thensumelsenullendif

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