Hi all,
In my form, i have made a form so users can attach files to the form.
It looks like the below
[Attach file button] [file name field]
The code on [click]
var doc = event.target;
doc.importDataObject("Marketing Material files 1");
var MyPar1 = doc.getDataObject("Marketing Material files 1");
form1.Section1New.section115.MarketingMaterialBody1.marketingFile1.rawValue = MyPar1.path;
------------
So when they've attached a file, it will show the files name in the file name field. The attachment is shown in the attachments tab on the bottom of the form.
What i want to know is if it is possible for them to click on the file name field to open up the attachment? instead of using the tabs on the bottom to open attachments?. This form is quite large with alot of attachments, so it would make it more user friendly if they could open the attachments at each section instead of having to use the attachments panel on the bottom and read the descriptions to work out which section each attachment belongs. i think to do this i need to know how to retrieve the attachments path? but i'm not sure how i would do this.
Any help would be greatly appreciated.
Thanks