Expand my Community achievements bar.

How to choose a folder and assign it to a textfield in javascript

Avatar

Level 2

i want to  choose a folder and assign it to a textfield  if user clicks browse button in javascript

3 Replies

Avatar

Level 10

You can't do this in Acrobat/Reader with JavaScript.

The only thing you can do is either to determine the path of the currently opened file with:

or to type a path into the field/script manually:

Avatar

Level 2

prasad,

Can you explain, what needs to be done after you open a folder.

is it something like,

Click on Text feild -- Open a Pop window to show the explorer -- then ???

Avatar

Level 2

Hi,

I need simple thing. i have a textfield with name 'path' & Browse button . if user clicks Browse button open dialog box or explorer will open to choose file folder . after user choose his path it has to be displayed in textbox . later i will use this path  for saving the form i.e; my form is template  to restrict the user to save somewhere else.

with regards

prasad