Renumber pages after deletion of spawned page
I have a form with a template for spawned pages. On the tenplate there is a "delete this page" button so users can delete spawned pages. However, I also have a field, "Pages" that shows the page number on each page using the calculation script below:
event.value = (event.target.page+1) + " of " + this.numPages;I would like to reset "Pages" when a page is deleted, but realized that adding this as a function of the delete button will not work - can't call a script from a deleted page.
Is there any other ways to do this?
