Skip to main content
Participating Frequently
May 28, 2024
Answered

Adobe Acrobat How to hide if the total value percentage if zero

  • May 28, 2024
  • 1 reply
  • 669 views

Hello, Everyone. I'm still a beginner on this one. I appreciate for those people who will help with my concern. I'm making forms that has percentsage as total.

How do you hide the total value percentage if zero? 

This topic has been closed for replies.
Correct answer Thom Parker

To do this you have to write your own formatting script.

 

Use this custom format script.

 

event.value = (event.value!=0)?util.printf("%0.0f%",event.value*100):"";

 

 

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
May 29, 2024

To do this you have to write your own formatting script.

 

Use this custom format script.

 

event.value = (event.value!=0)?util.printf("%0.0f%",event.value*100):"";

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participating Frequently
May 29, 2024

Thank you. I appreciate it.