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

Fillable Forms - Save As auto-populate file name from fields

New Here ,
Jan 03, 2023 Jan 03, 2023

We're looking to make the Save button be Save As and the file name auto-populate by some of the fields that are filled by the end-user.  I've seen the various documentation about this but nothing seems to work.  I'm also hoping that some of the fillable fields can auto-recognize html hyperlinks when pasted?

 

Thank you!

TOPICS
JavaScript
1.6K
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 ,
Jan 03, 2023 Jan 03, 2023

That's not possible. You can either:

- Show the user the desired file-name in a separate window, where they can copy it and then paste into the Save As dialog, or

- Save the file silently using the desired name, but that requires running the code from a privileged context, such as a script file installed on the local machine.

See these tutorials:

https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

https://acrobatusers.com/tutorials/trust-and-privilege-in-acrobat-scripts

https://acrobatusers.com/tutorials/using_trusted_functions

 

Not sure what you mean by "auto recognize HTML hyper-links when pasted into text fields", but a script can't create a link in a text field, if that's what you mean.

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 ,
Jan 03, 2023 Jan 03, 2023

Do you happen to know of a resource library of Adobe-related Javascripts?

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 ,
Jan 03, 2023 Jan 03, 2023
LATEST

There are several. I offer many (paid-for) tools on my website: https://www.try67.com/tools

There are also many free resources in the site I linked to earlier.

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