Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Generating a filename from the fields completed in a PDF form

New Here ,
Jul 20, 2016 Jul 20, 2016

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

TOPICS
Acrobat SDK and JavaScript
369
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 20, 2016 Jul 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2016 Jul 20, 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??

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 21, 2016 Jul 21, 2016
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines