Highlighted

Autoname based on field

Avatar

16-07-2008

Hello,



I am quite new to Livecycle and am ripping my hair out trying to figure out how to do the following:



I need to have a button within my PDF form that will do the following in order:



1. Save the file to a specific location with a filename thats auto-generated based on a fields content within the form



2. Email a "notification" to a specific email address with the same message everytime.



3. Print the form



Am I wasting my time with this, or is Livecycle capable of doing it?



I have all these functions working seperately with the exception of the autonaming.

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

16-07-2008

Firstly autosaving (meaning saving programatically) is a no no. This is against the security model (the user has no idea that this is goinng on). You can have the use click a button and choose the file name to save. Email the notification is not an issue except that the autoamtion can create the email message but the user has to hit th esend button in th eemail client (again security concerns around email spamming are restricting you to fully automate this). Printing the form can be done without intervention.
Highlighted

Avatar

16-07-2008

Paul thank you for your response. I think you may have missunderstood my intention when i said "auto save"



I am looking to toggle the app.execMenuItem("SaveAs") function. However I would like to generate a filename automatically based on a filled out field within the document.



For example if I have a field within the document called "CaseNumber" and the user fills out the field with "1234", when they hit the button it will popup the save as dialogue but generate the filename "1234.pdf" and location "c:\pdf" (or something similar) so all the user has to do is hit save.



I can get the save as function to work but dont know how to get the filename to generate from the field
Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

16-07-2008

I don't think you can effect the fieldname ...the user will have to choose it.