Expand my Community achievements bar.

display pattern doesn't work.

Avatar

Level 1

I created a numeric field(amt)and renamed it as "amt" & set

acroFields.setField(

"amt","1662");

For that field, I set Display to $1,234.21. and also Data pattern. I didn't touch Edit and Validation at all.

but, I dont see the value 1662 changed as $1,662.00 . It is printing as 662 only.

Please let me know if I am missing something.

2 Replies

Avatar

Former Community Member

To set the value of the field do not use acroFields.setField("amt","1662"); -----Use

amt.rawValue = "1662";

and see what the result is.

Paul

Avatar

Level 1

We are using itext to populate adobe livecycle designer pdf.

I am doing "acroFields.setField("amt","1662")" in the code.

And on that field I have the data pattern defined.

But, Adobe is not convering my value 1662 to $1,662 in the generated pdf.