|
Here's a sample of what I eventually came up with
and it works.
var array1 =
['debt_tot_mthly_pmt','debt1_int_rate','debt2_int_rate','debt3_int_rate'];
var array2 = ['2','3','3','3']; // where the element is the number of decimal places inthe number format for (i = 0; i < array1.length; i++){ try{ f = this.getField(array1[i]); if (f != null){ f.setAction("Keystroke","AFNumber_Keystroke(" + array2[i] + ", 0, 0, 0, '', false);"); f.setAction("Format","AFNumber_Format(" + array2[i] + ", 0, 0, 0, '', false);"); } }catch(e){ console.println(array1[i] + ' ' + e); } } Thanks for the help.
-Steve
----- Original Message -----
From: Paulo Soares
To: Steve Cole ; [EMAIL PROTECTED]
Sent: Monday, December 06, 2004 11:00 AM
Subject: RE: [iText-questions] How do you set the field format
category? That's done using JS functions that ship with Acrobat. Create your
field in Acrobat with the format and copy the JS to
iText.
|
