Browse for Folder path.
836210Mar 2 2011 — edited Jul 19 2011Hi,
I have a requirement to store a directory path in a database, and would like the user to be able to browse to a folder and select it, so that the full path can be stored in a table.
I plan to have the initial browse point default to a network drive and parent directory, under which the user will navigate and select the appropriate child directory, probably at least 2 levels down.
The user will be entering data via a form. I had envisaged using a display only field to show the path, (blank for new records), and then having a 'Browse' button to select the directory, before submitting the form.
The question is how to achieve this. The File Browse item type is nearly there, but is obviously more concerned with uploading files. I just want to select and store a directory path.
Any ideas on how I can achieve this please. I have been trying to get a button to run some java script to open up a dialogue and return a directory path, without success, and I am not sure this is the best approach.
Thanks in advance
Mark