cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress initial values for Decimal/Numeric fields

Former Member

Hi All, Is there any way of suppressing initial (0) value for decimal/numeric fields from within a Adobe form? I tried hiding the field by checking the field (== null), but this script hides the entire field including the caption, leaving an empty space. As in smartforms (&Symbol(I)&), are there any ways of formatting the output in adobe designer as well?

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

If you don´t like to play around with patterns (lack of time), you can always write a simple script on each field (event like initialization or something) saying:

if (this.rawValue = 0) this.rawValue = ""; what will clear the value for you

regards Otto

p.s.: that is a little too basic question, search for a minute the next time, please

Former Member
0 Kudos

Thank you Otto. The script provided does the job. I had never tried using JavaScript before, maybe I should look into it.

maxmalz
Explorer
0 Kudos

thank you sir very useful comment

Answers (1)

Answers (1)

0 Kudos

Hi,

I think you can solve this by using a pattern for the specific decimal/numeric field. Then you have to check 'Allow zero' without inserting a value in the input field below. I hope this works.

Regards,

Martin