java script for button to load CSV into fields
Copy link to clipboard
Copied
Hi,
I don't know java script, but some where along my path someone gave me the simple java script for my button to load previously saved PDF data back into a PDF.
Could someone let me know if there is also a simple script to load CSV data into a PDF and what it is?
thanks for all your help
Copy link to clipboard
Copied
Try this command:
this.importTextData();
Copy link to clipboard
Copied
Copy link to clipboard
Copied
The format of the file needs to be two rows, with the field names in the first and the values in the second.
You seem to have multiple rows, which is OK, but you'll only be able to import one of them.
Also, I would remove the first column since it doesn't have a field name in it.
And you need to make sure that the names of the fields in the CSV file match those in the PDF exactly, including lower/upper-case letters.

