If I understand your question correctly, this is the script I use and it works flawlessly:
var f = this.getField("Field53");
f.hidden = (event.value < .0000001);
Click on the field where you want the zeroes to be blank, which will bring up the Text Field Properties.
Click the Validate Tab.
Click the Run Custom Validation Script
Enter the script I showed above exactly as it is, even copy and paste it if you'd like.
Replace Field53 with the name of the field where you want the zeroes to be blank.
Click OK then click Close
Save your work
If there is a zero in the box you want the zeroes to be blank, delete it.
Save your work again
This should from now on keep your zeroes blank...
I hope it works for you!
Now on to get help for my problem...
Have a great day!
THANK YOU, THANK YOU, THANK YOU!!!
Wow - it is truly nice to not only get a quick response, but a response in detail as requested!!!
I have been searching for 2 days solid, trying every solution I have come across and THIS SOLUTION IS THE WINNER!!! I am a very tech-savvy person, but I just could not figure out the script, until now. Your step-by-step instructions worked flawlessly just as you claimed! A million thanks!
I hope this will thread will help others as easily as it has helped me.
You're very welcome!
In all honesty, I obtained that script from someone who helped me in the
forums a long time ago with the same problem. I am not a very tech-savvy
person so I'm always looking for help with something.
I've actually got a question posted myself for help with a custom script but
so far no help. =(
I'm glad I was able to help you, but the thanks go to whoever it was that
helped me oh so long ago. =)
Have a great day!
Thanks for this excellent tip!
I wish I could take credit for it but it was someone else here who helped me with it. It's just been so long ago that I can't remember who it was.
I'm very glad though to hear that it's helping, and I hope that whoever it was that helped me originally will see this thread.
Have an outstanding day!!
I can't get his work and I'm using Acrobat 8
Did you create the form using the LiveCycle Designer program?
This solution is for forms created using the Acrobat Form Tool bar.
You will have to clear the form or force the form to recalculate.
This code will not work for any format other than number. The use of the percentage adds a special non-numeric symbols that will force a display of zero. If you are using the Percentage format, then a much more complex script needs to used that also sets the field format based on the value of the result.
I created t in Acrobat.
I use the validation tab with the following script:
if(event.value == 0) event.value = "";
It works with all of the various calculation methods options.