Auto Rename PDF Form Based on text field data via Button | JavaScript | Adobe Acrobat pro dc 2022

preview_player
Показать описание
In this video, I'm going to show how you can save your PDF form with the new filename of the PDF based on the text field data via Action button javascript.

PDF form, when a user saves the document can anybody share a javascript that would generate the filename of the document based on the data in a form field within the form and for this document to be saved in a separate directory from the original PDF.

Just paste and change text field name.
Button JavaScript:

Folder Level Script:

myFileName = "/c/temp/" + myFileName
myTrustedSpecialTaskFunc(this, myFileName);

NOTE:
After putting the javascript in SAVE button, restart your adobe acrobat.
Make sure you have created a new folder in drive C and name it "temp".
You can add multiple fields by adding this string in button javascript
Рекомендации по теме
Комментарии
Автор

Thank you very much for this tutorial 👍🥰

mohwiss
Автор

I keep getting an error: myTrustedSpecialTaskFun is not defined

NataliaFlores_
Автор

Great video very helpful, Thanks for the java script

alexajackson
Автор

Hi, could you please help me with a solution? I have a drop down fiel AMD based on the selection of that drop down fiel there will be predefined Text populated in a textbox. In that Text box, in Addition to the predefined Text manually some additional Text needs to be extended. All works till here fine. But after digitally signing the document, the additional manually entered Text disappears from the Text Box. Any solutions to handle this problem ? Thanks in advance

archanaharish
Автор

anyway you can add - between the field, so when it saves its now all bunch up, like you saved and says youtubeabc-123, so instead it would save it like youtube-abc

BobMacD-qk
Автор

Thanks for the tutorial on this the only question is there a way to suppress the dialog box asking for permission to write the file?

thebaz
Автор

Hi, thank you for your help, this is exactly what I needed.
you know how to tell me how to avoid overwriting the base document?

noutay
Автор

I have a invoice and a field name with " Invoice Number:", where i want to create a auto generate invoice number every time when i open this invoice. is it possible?

md.zahidulhaque
Автор

Thank you for this Tutorial, i searched a long time for this. But can you explain how i must change the code for this format: XXX_XXX_Date.pdf i have tried some different codes but ther is no succses. And is it possible to save it as a jpeg or somthing else. to change the "pdf" does not work for me

florianm
Автор

If I share the pdf form with someone else who views it in Reader or in a browser, will the function still work?

greatowlautomation
Автор

the instructions in the video are different from comments. Note the fields can not include forbidden characters for the file name. For example, dates can not include ///

yuliyabryman
Автор

Is there a way to bulk auto-rename PDFs based on text field data?

HowieLL-yy
Автор

Is this also applicable when you extract multiple pdf files ?

jeramaeelasaul