Mac issue with spawned pages - Fields not showing
- August 2, 2021
- 3 replies
- 675 views
Hello,
I have a template that, upon choosing from several drop down lists, certain pages spawn and others are deleted. This form works perfectly on a Windows based machine, but when you make the same choices on the Mac version of Acrobat Pro DC, the pages spawn but they are completely blank. If you then open the Prepare Form section of Acrobat after the blank pages spawn, you can see black and white boxes where the fields should be, but you can't access the fields (see pic). I'm wondering if it has something to do with the deletePages code I used to remove the pages I no longer want, but I'm not positive on that. Here are snippets of the spawning code and the deleting pages code.
SPAWN
else if (event.value == "Small Size") {
if ( Drop2 == "Small Size" && Drop3 == "Small Size") {
var expTplt1 = getTemplate("1K1-2");
expTplt1.spawn(numPages,false,false);
var expTplt2 = getTemplate("1K1-3");
expTplt2.spawn(numPages,false,false);
var expTplt3 = getTemplate("1K1-4");
expTplt3.spawn(numPages,false,false);
this.pageNum = 1; }
DELETE
if (this.numPages == 4) {
this.deletePages({nStart: 1, nEnd: 3}); }