hi b cole,
drag and drop one textfield and button from the library pallete into the layout and then for the button
event : Click Language : JavaScript
var
entryCount = 0;
var
i = parseInt(entryCount.value);
var
oDoc = event.target;
oDoc.importDataObject("entry"
+ i);
var
oAttachment = oDoc.getDataObject("entry" + i);
var
attachPath = oAttachment.path;
var
oFile = oDoc.getDataObjectContents(oAttachment.name);
TextField1.rawValue
= attachPath;
// app.alert(entryCount.value);
entryCount.value
= String(parseInt(entryCount.value)+1);
when you click on button a pop up will be opened to select a file from your desired path, select the file.
you will find the file attached in the attachments tab of adobe reader.
Note : In the script the textfield name is TextField1, you should change this name as per your field name
Thanks,
Madhu.