Copy link to clipboard
Copied
Hello
Am trying to save a fillable form as template so we can insert/populate more of the same form in a file as multiple blank pages but to-date cannot find the template or use it when we've supposedly added in Page Template.
Copy link to clipboard
Copied
Please outline exactly how you would like your form to work.
An entire PDF form cannot be a "Page Template". But individual pages within a PDF form can be made in to "Page Templates". It sounds like you would like a page in your form to be a template page, that can then be repeatedly inserted into the form. Is that correct?
If so, then you'll find the page template tool in the "Organize Pages" toolset.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Spawning a copy of the Template requires using a script. This code will spawn a Template called "MyTemplate" as the last page of the file, with unique field names:
this.getTemplate("MyTemplate").spawn(this.numPages, true, false);
However, be aware that although the fields are uniquely named, they will have the same values as the original fields on the Template page, so it might be a good idea to clear them, but that will require a more complex script (or to hide the Template page so the fields in it are always empty).
Edited: Fixed small mistake in the code.
Copy link to clipboard
Copied
Thankyou Try67....have tried coding as well but must be missing a step somewhere as I couldn't retrieve the template and as such unable to spawn any pages.
Copy link to clipboard
Copied
Can you elaborate? What happens when you run just the first part of the code, namely:
this.getTemplate("MyTemplate")
Also, do you see your Template in the Document Templates dialog?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now