Copy link to clipboard
Copied
Hello
I'm struggling with a critical problem on my PDF forms and I'm hoping you can point me to the right solution!
I created a set of forms that users often need to copy and fill out several times before combining them into one final document.
The huge headache is that when they combine the copies, the data mirrors across all of them (e.g., if they change the name on copy #3, it also changes on copies #1, #2, and #4). This happens because all the form fields have the same internal name.
My Goal
I need a way for the forms to automatically rename their fields the first time they are opened or saved, ensuring every single copy stays completely independent. The user shouldn't have to do anything special—just fill, save, and combine.
I'm trying to use JavaScript to rename the fields with a unique ID, but the code won't run. I've placed the renaming script in:
Document Will Save action.
Document Did Open as a Document-Level function.
Field Validation actions.
In every case, the script fails to rename the fields. This makes me think Acrobat's security settings are blocking the critical function: f.rename().
Is there a specific, reliable, and non-deprecated method or security tweak needed to allow a PDF form to rename its own fields via JavaScript?
I really want to avoid manually creating 10+ unique copies of the form myself! Any advice on how to get this automated script past the security gate would be a lifesaver.
Thanks so much for your help!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
rename is not a function of Acrobat.
Copy link to clipboard
Copied
> In every case, the script fails to rename the fields. This makes me think Acrobat's security settings are blocking the critical function: f.rename().
Another option (the correct one) is that there's no such function to begin with...
Find more inspiration, events, and resources on the new Adobe Community
Explore Now