Skip to main content
Participant
July 20, 2016
Question

Generating a filename from the fields completed in a PDF form

  • July 20, 2016
  • 1 reply
  • 435 views

Hi

I would like to create a filename for my PDF form based on the fields that have been completed.

I would like it be first name, surname, DOB

Can anyone advise how I could do this?

Thanks in advance

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 20, 2016

It can be done with a script, but the script needs to be installed on the user's local machine.

For more details see: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

Participant
July 21, 2016

The form will be emailed to multiple users some of whom i will not know so i doubt it would be practical to have the script installed on the local users machine. is there another way to do this?

I already have a button that saves the PDF and one for emailing directly back to me. I was hoping to add this function to the save button on my form??

try67
Community Expert
Community Expert
July 21, 2016

The only alternative is to display the desired file-name to the user and ask them to save it under that name, but you can't do it automatically or pre-populate the Save As dialog with it.

Another thing that's possible is to prevent the file from being submitted back to you if it doesn't have the correct file-name.

All of those things require a custom-made script, though.