Hello,
I have a fillable form pdf and I am using aspose to fill out the form with information. The pdf fields already have formatting available (standard currency format) and some fields have validation and calculation javascript.
When I fill the formatted fields with a decimal, all I get are the numbers. No formatting.
When I fill the formatted fields with a formatted string for currency, the field values are no longer numbers and they break the validation/calculation javascript.
How can I trigger the field to correctly format the data in the field after using aspose to populate the data?
Example of how I am filling the field:
-produces just numbers, does not trigger the native pdf formatting
forms.FillField(“Monthly_Ded_Amt1”, Math.Ceiling(decimalVar).ToString)
-correct formatting, but cannot use value of field when validating/calculating with javascript
forms.FillField(“Monthly_Ded_Amt1”, FormatCurrency(Math.Ceiling(decimalVar)))
Thanks for any help!