Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting complete file path in Adobe Interactive Form

Former Member
0 Likes
513

Hi All,

I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.

*Start of JavaScript

var sFile;

event.target.importDataObject(sFile);

var oFile;

oFile = event.target.getDataObject(sFile);

this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;

*End of JavaScript

1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.

2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.

3. This way is only giving me the selected FILE NAME whereas I need the complete path.

I have tried below way also:

this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;

This function returns me the complete path but in URL form. It does not give me the presentation server path.

Please suggest me how to get the complete path of presentation server to the file.

Appreciation would be honored in form of points!!!

Regards,

Ashish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
407

please post it here for quick response

and also search in adobe forums also for java script related.

http://www.adobe.com/support/forums/index.html

1 REPLY 1
Read only

Former Member
0 Likes
408

please post it here for quick response

and also search in adobe forums also for java script related.

http://www.adobe.com/support/forums/index.html