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

Calculated field amount to be blank upon printing

suei
Registered: Jan 29 2008
Posts: 9
Answered

If my calculated field amount is zero, I would like the field to be blank upon printing the form. Our form is used by those filling it out on the computer and also by those printing and filling out the form by hand. The calculated total fields shows $0.00 and the people filling out by hand need to write in those boxes.

My Product Information:
LiveCycle Designer, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Suei,

See this post-
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=1714

Hope that helps,

Dimitri
WindJack Solutions
www.windjack.com
suei
Registered: Jan 29 2008
Posts: 9
Hello,
I checked out the post you suggested...spent too much time trying to get mine to work. This is what I have typed in the event enter. Is that the correct place? It makes my field visible when it's >0 and makes it invisible when 0 or less, however, I need the part that says total mileage to be visible and the value only to be invisible. Is this possible?
Thanks,
Sue

if (micost > 0) then
$.presence="visible";
micost*1;
else
$.presence = "invisible";
0;
endif
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
In FormCalc try:

if (micost eq 0) then
null
else
micost
endif

George Kaiser

suei
Registered: Jan 29 2008
Posts: 9
Thank you so much!! It worked!
Sue
Hammari
Registered: Mar 25 2008
Posts: 16
I've had so much trouble trying to find a solution for this I thought I would share what finally worked for me. I don't know if this is a work-around or if it was actually necessary, but I created a hidden numeric field (AE1) to calculate:

AA1 * AB1 * 35

and then used

if (AE1 eq 0) then
null
else
AE1
endif

in the field I originally wanted to display my calculations in. It got rid of those "$0.00" that had been causing me so much trouble.

Thanks for the information.