Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Please I really need help with opening referenced files

Avatar

Former Community Member
using



----- form1.#subform[0].ReportSubDDL::change - (JavaScript, client) ------



var selectedText = xfa.event.newText;

var redirectURL = this.boundItem(selectedText);

xfa.host.gotoURL(redirectURL);

opens the file But ONLY if that file is in the same folder how can I get it to look in a folder to find the file & what or how can I get the file using that files default Documents Properties, designer always opens bookmarks on the file it opens?



thank you

craig
1 Reply

Avatar

Former Community Member
craig_michael_ryan@adobeforums.com wrote:

> using

>

> ----- form1.#subform[0].ReportSubDDL::change - (JavaScript, client) ------

>

> var selectedText = xfa.event.newText;

> var redirectURL = this.boundItem(selectedText);

> xfa.host.gotoURL(redirectURL);

> opens the file But ONLY if that file is in the same folder how can I get it to look in a folder to find the file & what or how can I get the file using that files default Documents Properties, designer always opens bookmarks on the file it opens?

>

> thank you

> craig



I'm guessing the problem is that the value for redirectURL is just a

filename or relative path. If you use a URL type of path, it should

work for you. Below is an example that worked for me:



var redirectURL = "file:///C:/files/adobe/myfile.pdf";

xfa.host.gotoURL(redirectURL);



Hope this helps!

Justin Klei

Cardinal Solutions Group

www.cardinalsolutions.com