I have a document that is 4 pages long. On several pages I have checkboxes that are assigned an export value. After selecting the checkbox(s), the sum is then calculated at the bottom of the page, as pictured below.
In addition to the 4 pages, I have hidden templates inside the document that populate at the press of a button. The script for that is posted below.
( var a = this.getTemplate("Additional Locations");a.spawn(); )
Here's the problem; when a new template page is added, the value box at the bottom of that particular page does not calculate the sum of the boxes checked on that page. The reason being (I think) the name field for checkboxes on the spawned template change from "CB1" to "P4.AdditionalSuspects.CB1"
This worked! Thank you for the fast reply! Now, this brings on another issue. The first spawned page works great, however, if I spawn another page, all of the form fields in the first spawned page are linked to the second spawned page. Is there a way to fix this?