Copy link to clipboard
Copied
I need to add a delete page button to a spawned page so if someone creates too many pages they delete the pages they don't want. These are all created at the end of the document.
I am quite new to this Java script.
Many thanks
If you want the button to delete the page its on use the following code as its Mouse Up event:
this.deletePages(event.target.page, event.target.page);
In order for it to work the field name of the button must be unique, though.
Copy link to clipboard
Copied
If you want the button to delete the page its on use the following code as its Mouse Up event:
this.deletePages(event.target.page, event.target.page);
In order for it to work the field name of the button must be unique, though.