Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Set default folder to select image when browsing


Former Community Member
Is there a way to set the default folder in JavaScript so that when the user clicks on an image field they will be browsing in the correct folder to select their image file?

I have a form that will be used in-house and would like the user to be able to browse an image folder we have on our local network when the image field is clicked.

I have tried using the following code in the click event with no luck:

xfa.resolveNode("form1.Page1.sfBody.txtImage").href = "O:\Pictures\";

Does anyone know if there is a way to do this???
1 Reply


Former Community Member
I've had no response to this question and found a similar post from Dec 2005 http://www.adobeforums.com/webx/.3bbdc19d/1 that also did not have a solution.

Does anyone know if/how I can have the filebrowser open in a specified folder?