Copy link to clipboard
Copied
Hi all,
I want to the file to autoname itself based on a couple of filled fields as well as including a couple of standard texts so that it looks something like this:
Field1.Field2.Field3.StandardText.Field4
Is this possible? I also want it to include the periods between the field names.
Copy link to clipboard
Copied
You mean you want the file name to update in regards to the value of certain fields?
You sort of wish to code a SaveAs function ?
Copy link to clipboard
Copied
Yes, that is absolutely right. I don't need it to look for a certain folder or anything, just to update the name depending on values.
Copy link to clipboard
Copied
It's possible, but in order to do a Save As, you need to include the code that does the saving in a folder-level JavaScript and install it on each machine the form will be used on. An alternative is to add a certification signature and each user would have to trust the certificate so that high privileged JavaScript is allowed. The code needed to do a Save As in the way you want has been posted here many times and is also in the Acrobat JavaScript documentation, but if you get stuck, post again.
Copy link to clipboard
Copied
Ok, I don't think adding a folder level script is an option as we are on a large network. How would the certification signature work?
Copy link to clipboard
Copied
The idea is you that you digitally sign the document in Acrobat by adding a certification signature. The exact procedure depends on which version of Acrobat you're using. Each user of the form would then have to open the document, look at the certificate details, and choose to trust the certificate to "Execute high privileged Javascripts that are embedded in a certified document". Again, how this is done depends on the version of Acrobat/Reader the user has.
Copy link to clipboard
Copied
We use 11 Pro
Copy link to clipboard
Copied
If we are using 11 Pro, how would this be done to execute the certificate?