Skip to main content
Participating Frequently
Feb 13, 2025 8:41 PM UTC
Question

Spawn Additional Text Page in Fillable PDF

Hello, I'm curious as to if there is a JavaScript to just generate an additional text box or blank page with one text box and signature of writer to verify their writings. Would this be from a template that I would spawn?

 

Also, what is a good JavaScript to use for this to have a button at the end of the page to add additional text for the page. I haven't been able to find any working JavaScript or help for this task.

35 replies

try67
Community Expert
Community Expert
Feb 13, 2025 10:44 PM UTC

Yes, you can spawn pages using a script. The fields should already be located on the Template page before you spawn it, though. Adding them after the page is created is not a good idea.

Translate
Participating Frequently
Feb 14, 2025 2:50 PM UTC

I'm making a template with the fill fields. For some reason all the scripts I try on the community help wont work. Is there a specific mouse click that I'm not using. I'm trying to load a "Template1" at the end of each page as an option for additional text. For some reason none of the scripts though I've found have worked out. Do you happen to know a productive one?

 

Translate
PDF Automation Station
Community Expert
Community Expert
Feb 14, 2025 3:23 PM UTC

I linked to the JavaScript reference for spawning templates in a previous comment.  It would be helpful if you provided the script you are using that doesn't work.

Translate
Participating Frequently
Feb 13, 2025 8:42 PM UTC

Additionally to have a button on the spawned pages to delete the page. If by accident a user made a page and they didn't need or want it.

Translate
try67
Community Expert
Community Expert
Feb 13, 2025 10:44 PM UTC

To delete the current page when a button is clicked using this code as its Mouse Up event:

this.deletePages(this.pageNum, this.pageNum);

Note this will only work on spawned pages if used in Reader.

Translate