Hi
Quite an easy one I hope. Have done a search but the examples I have found do not quite fit.
I am using Acrobat 7 Pro (MAC). I have a calculation which adds up 11 boxes. I would like the total box to show a blank entry rather than the zero if no amounts are entered.
Can someone show me how? I understand that the whole calculation will need to be scripted including the sum itself.
Please assume basic scripting skills in your reply.
Thanks
Tim
If you are using Acrobat Forms, you can use the following JavaScript as a custom validation script for the sum field:
if (event.value == 0) event.value = "";
This will always supress the dispaly of zero.
Have you read Ted Padova's 101 Tips and comments?
If you have used LiveCycle Designer, you can set the presence property for the result field.
if (NumericField1 > 0) then
$.presence = "visible";
NumericField1 * 10;
else
$.presence = "invisible";
0;
endif
http://forms.stefcameron.com/2006/05/15/calculate-scripts/
George Kaiser