All,
I have a select box which I am successfull in capturing all the directory(folder) names using <cfdirectory>. How can I build another select box which will populate with all the file names for each folder selected from previous select. Thanks
You'll have to issue another CFDIRECTORY for each folder in the root or requested start folder.
Now, for the tricky part: If you want the second select box to populate on the client side based on what was selected in the first box, take a good look at the source code for the custom tag CF_TwoSelectsRelated. I'm not sure if you can use this tag "out of the box" given your requirements.
If you can stand another round-trip to the server, just give the selected folder name to CFDIRECTORY and populate the second select box with the results.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.