Skip to main content
July 17, 2017
Question

custom calculations with generic calculations

  • July 17, 2017
  • 1 reply
  • 880 views

Hi,

I am creating an expense form that is fill-able for our website.  I want to be able to print a blank form from the same form. However, if there is nothing added to the columns that are being calculated, there are zeros.  I tried to hide the zeros when printed, but this hides all numbers in the field.

Is there a way to have the zeros hidden when printed and any calculation totals in the total box not hidden when printed?

Thank you!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 17, 2017

You can hide them altogether when they are zero, by using this code as the custom validation script:

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

July 17, 2017

Hi thank you for the reply. I want to hide the zeros, but not any other number. say, i'm calculating a column and the total is $134 the next column is zero. will i be able to have the $134 printed, but not the zero?

try67
Community Expert
Community Expert
July 17, 2017

The code I provided will do that.

On Mon, Jul 17, 2017 at 11:22 PM, annettew70053241 <forums_noreply@adobe.com