Avatar

Level 4

Hello,

I'm trying to have a button on the Master Page do different things according to which part of the form the user is on.

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

do x;

}

else {do something y;

}

It doesn't seem to work. It always does x.  I suspect that since it's really 1 long page (flowed subforms) it's treating all instances as currentPage = "1". 

Can I reference the current subform instead of page?

Is this even possible or do I need multiple Master Pages?

Also, I've been looking at the xfa.layout DOM examples online.  That's not in my version of LiveCycle as an option.  Very strange....