I created a 5 page forms using buttons to navigate to different pages. When the form is opened you can navigate using the buttons, however, you can also scroll down and see the other pages how do I hide these pages? tHe code i'm ising is this:
/ this calls the function to hide all the pages
pageNav.hidePages();
// this shows the target page again
page1.presence = "visible";
form1.page1.navButtons.Button2::click - (JavaScript, client)
// this calls the function to hide all the pages
pageNav.hidePages();
// this shows the target page again
page2.presence = "visible";
form1.page1.navButtons.Button3::click - (JavaScript, client)
// this calls the function to hide all the pages
pageNav.hidePages();
// this shows the target page again
page3.presence = "visible";
form1.page1.navButtons.Button4::click - (JavaScript, client)
// this calls the function to hide all the pages
pageNav.hidePages();
// this shows the target page again
page4.presence = "visible";
form1.page1.navButtons.Button5::click - (JavaScript, client)
// this calls the function to hide all the pages
pageNav.hidePages();
// this shows the target page again
page5.presence = "visible";