Hide or Suppress Zeros in Calulated Field


i have added fields invoice-style proposal.  first time ever adding fields pdf document.  seems simple , fields working flawlessly.  however, when want quantity field , per-price field calculate total field... total field shows zeros.

 

how can make zeros disappear?  field blank until calculation made.

 

i have searched through every single forum on here relating exact issue.  1 person says "use script" , person says "use script"  have tried every script found , yet not zeros disappear dispite findings.

 

can please explain me 3rd grader... not understand scripting , challenging me.  exact script use suppresses/hides zeros when calculation null?  place script?  maybe i'm adding wrong section?

 

you think adobe add checkbox editing field allow suppress zeros... save lot of trouble.

hi!

 

if understand question correctly, script use , works flawlessly:

 

var f = this.getfield("field53");
f.hidden = (event.value < .0000001);

 

click on field want zeroes blank, bring text field properties.

 

click validate tab.

 

click run custom validation script

 

click edit

 

enter script showed above is, copy , paste if you'd like.

 

replace field53 name of field want zeroes blank.

 

click ok click close

 

save work

 

if there 0 in box want zeroes blank, delete it.

 

save work again

 

this should on keep zeroes blank...

 

i hope works you!

 

now on problem...

 

have great day!

diane dennis



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???