Avatar

Correct answer by
Level 4

Ok , it was just a dumb error.  When I tested it setting presence, I found out that the next  ok button was responding.  Meaning that I should have remembered that currentpages start off with 0, not 1.

Correct syntax:

if (xfa.host.currentPage =="0" ) {

this.presence = "invisible";

}

else {this.presence = "visible";

}

View solution in original post