Skip to main content
GatsbyNZ
Known Participant
August 11, 2023
Answered

Modify Spawned Pages based on Template

  • August 11, 2023
  • 1 reply
  • 1636 views

Hi,

I have a question regarding the spawned pages based on a template page.

Let's say I have a PDF with a template page (template) already created, and have the fields listed below already filled in for the template page:

"TemplateField1, TemplateField2, TemplateField3"

And I have generated the following pages based on the template page:

"TemplateP1, TemplateP2"

And now I want to use this PDF for another job (same template page anyway), and those pre-filled fields have to be modified to suit the new job. I can rectify the template page to make sure the newly spawned pages carry out the changes I made to the fields, but what script can I put in to make sure the two pages spawned "TemplateP1, TemplateP2" for the previous job will have the changes made for the new job reflected in the fields "TemplateField1, TemplateField2, TemplateField3"?

 

Thanks very much!

This topic has been closed for replies.
Correct answer try67

The answer is no. Once spawned, the pages are independent of the Template. The only changes that will propagate to them is if you change the fields on the Template page, and have defined it so that the fields on the spawned pages are not renamed, meaning they are copies of the original ones. And even then not all changes will be copied over. For example, you can set different copies of the same text field to have different fonts, but if you set one of them as read-only, they will all become read-only.

1 reply

Nesa Nurani
Community Expert
Community Expert
August 11, 2023

Script to spawn template is always same, you can only change condition to spawn them.

You can make changes to the template and hide it again, changes will be saved.

GatsbyNZ
GatsbyNZAuthor
Known Participant
August 11, 2023

Thanks, but will the changes made to the template reflect on the previously spawned pages?

Nesa Nurani
Community Expert
Community Expert
August 11, 2023

What exactly are the changes?