cancel
Showing results for 
Search instead for 
Did you mean: 

how to avoid printing zero in amount field in adobe forms

Former Member
0 Kudos

Hi All,

If the amount is empty in the amount field then it is printing 0,00. I have written some peice of code to avoid printing that value. I wanted to print space.

Below is the  logic which  i have tried in  javascript.

if  ( this.WRSHB.rawValue == null )

{

this.presence == "hidden";

}

if  ( this.WRSHB.rawValue == '0,00' )

{

this.presence == "hidden";

}

I am still able to print 0,00 in the form output.

Can anyone please help me out in achieveing the same ? Am I missing anything in the javascript coding?

Thanks and Regards,

Karthik Ganti.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

This message was moderated.

Former Member
0 Kudos

Hi Ashvin,

Thanks.....I have tried with same logic, but it dint work. Still I am able to print 0,00 instead of space.

Below is my logic. Please correct me if I am wrong.

I have written the below logic on the partcialr field. Written in Intialise event and also changed the field type to text field.

if ( this.rawValue == "0");

{

this.rawValue = " ";

}

Former Member
0 Kudos

Karthik,

Yes, it should work the way you did it.

Can you please try to debug by adding a break-point?

Regards,

Ashvin

Former Member
0 Kudos

Hi,

Issue is fixed. I have written the above code in Form ready event and changed the amount field type to text field. It worked. Thanks.

Thanks and Regards,

Karthik Ganti.

Answers (0)