There are 6 other form fields (all text) on the page. I have saved the blank form (no map inserted & all text fields blank) as a template called "blankmap".
The javascript I have used for the spawning is:
this.spawnPageFromTemplate("blankmap");
this.pageNum++;
the javascript I have used in the button field for getting the map is:
event.target.buttonImportIcon();
My problem is that after the first page (which is the only page at this point) is populated (ie PDF map imported via button import) and the text fields are populated - when I click on the invisible field (over the company logo) to spawn a new BLANK page (one with no fields populated - not even the map - the resulting additional page is always a duplicate of the first page. The fields are indeed changeable so I know that they have different names so it is possible just to replace the text & map that has been created. I have also noticed that if a third page is created (from the spawn button on p2) then the page created is a duplicate of the 1st page.
I really need the new ly spawned page to be blank to avoid input errors. Any help would be appreciated.
Thanks
StevieB
Steve
There may be a better way of doing this, but you might try using resetForm method to reset those fields. Take a look at the Acrobat JavaScript guide for more information about this function.