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

help with not displaying a # if less that 1

DavidLindberg
Registered: Mar 6 2009
Posts: 28
Answered

Product: acrobat 9 pro extended
OS vista business

I have a time sheet that totals hours in a box called alltotal1

i would like a simplified field notation or javascript for an field titled: overtime1

the overtime 1 field should return overtime hours, in example: if alltotal1 has a value of 43, overtime1 should read “3” if alltotal1 has a value of 38 overtime1 should read 0 (it currently reads -2 because I have alltotal1-40 in simp field notation).

Can anyone help me out on this one? Any suggestions would be appreciated

My Product Information:
Acrobat Pro Extended 9.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Simplified field notation can not process any values, methods, logical statements, or control statements. Just the four basic arithmetic functions, simple fields names, and constant values.

You can use the custom validation script to control the value of the field and use Acrobat JavaScript. Or you can write a custom calculation script in Acrobat JavaScript.

George Kaiser