Saving PDF form to specific folder based on field data
Hi again, everyone! I came here a while back looking for help on a script to import a tab delimited txt file, creating forms with the imported data, and then saving them to specific folders based on a certain field's data. Below is the pastebin for that code and it's commented out to show what each bit is for.
[JavaScript] PDF Form Saving - Pastebin.com
I'm wanting to dumb this down a bit so that, instead of importing data to create the forms, a user will: fill out the form, choose the menu item according to what type of form it is, and the script then uses the PFFSID field data to use in the Switch portion to determine the folder it is to be saved in at the end of the script.
I thought that if I simply removed the While loop that the Switch section would be able to pass all necessary data to the SaveAs command, but I was wrong and I'm not exactly sure why. If you'd like to lend a hand please let me know any questions you might have so I can be as useful as possible.
Thanks!
