These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Save document as field name(s)!!!!

mjc
Registered: Jul 9 2007
Posts: 2

Hi

I have acrobat 8 professional and am creating forms. They need to be saved specifically as field names. Ideally when a button is pressed I need them to save as "field1""field2""field3"
field1 being a job number
field2 being client
field3 being job title
Is there a script or action that I can assign field names to my save as function via a button. Ideally when the button is pressed the 'save as' dialogue box will pop up with the name inserted and they can just press save. somtheing like:

01234 THE PUB CHRISTMAS MENUS

If this is possible please let me know as it would be greatly appreciated.

If not is there a way to copy the information from 3 fields into one field so they can just copy and paste that field and then save.

i.e. 01234

THE PUB

CHRISTMAS MENUS

appear as 01234 THE PUB CHRISTMAS MENUS

in one field with no breaks enabling them to just copy all info.

Many Thanks

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can build a string variable from the fields' value and then use the "saveAs()" method of the doc object to save the file. There are some security restrictions documented in the Acrobat JS API Reference available as part of the SDK documentation - a free download.

George Kaiser