Avatar

Level 4

Hello Niall.

I think this better soluction for my problem

for (var i=1; i<=25; i++)
{
     xfa.resolveNode("page" + i).presence = "hidden";
}

// then show the page you want for that button
page12.presence = "visible";

But I didn´t understand how it works. I will create a field hidden to put the number loop (for me is the way easier). Then, always I have to change the value of the "i" to 1?? The var i has to stay inside of the loop?  It´s correct?

Thank you.