Copy link to clipboard
Copied
Sorry for the continued questions, I'm hoping this will the last one
I curently have a checkbox set up to spawn a template using the below, so when you click it, it spawns a template after a specified page
this.getTemplate("Section1").spawn(this.getField("Marker1").page+1, true, false);
I want it to remove this page though when you uncheck the box, is that doable?
Thanks for any help!
Sure. Try this:
if (event.target.value!="Off")
this.getTemplate("Section1").spawn(this.getField("Marker1").page+1, true, false);
else this.deletePages(this.getField("Marker1").page+1, this.getField("Marker1").page+1);
Copy link to clipboard
Copied
Sure. Try this:
if (event.target.value!="Off")
this.getTemplate("Section1").spawn(this.getField("Marker1").page+1, true, false);
else this.deletePages(this.getField("Marker1").page+1, this.getField("Marker1").page+1);
Copy link to clipboard
Copied
Thankyou again, perfect!