Jump to content

Sum Field to display nothing when zero


dixon52

Recommended Posts

I have a form that adds several fields for a total. Everything works properly, while the document is completely blank the sum field displays '$0' -but I would like the sum field to remain blank so that it can also be printed without a zero in it. Any advice? Basically if the field is zero- show nothing.

Link to comment
Share on other sites

  • Power User
Steven Zakulec

Javascript is not really my thing, so the best I can probably do is point you in a promising direction.

Step 8 of this guide: https://acrobatusers.com/tutorials/change_another_field

has a different but related thing it does with a field that clears input.  You might want to investigate doing a custom calculation script, that has a condition where the display value is "" or " "- a blank or a single space character, which won't be visible on a printout.

Link to comment
Share on other sites

  • 2 months later...

I, too, am trying to do this.  I have tried the script

if (event.value=0) event.value = "";

in the custom validation script AND I tried adding it to my custom calculation script and neither is working. :( 

I don't know what I'm doing wrong but it is very frustrating!  I used Adobe Acrobat for years and never had any problems, so I don't know if this is a Nitro issue or I'm just entering it wrong.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.