Avatar

Level 10

Hi,

Yes, I used AcroDialog from Windjack Solutions. They have a 15 day trial of the AcroDialog software.

If you look at the click event of the button on the master page you will see the script from AcroDialog. This is specific to this dialogue window. Now if you scroll down to the very end you will see the script controlling the presence of the pages depending on which choice the user made in the dialogue window:

JSADMDlg1.strpop1 = "";

if("ok" == JSADMDlg1.DoDialog())

{

if (JSADMDlg1.strpop1 == "Page 1")

{

page1.presence = "visible";

page2.presence = "hidden";

page3.presence = "hidden";

xfa.host.currentPage = 1;

}

else if (JSADMDlg1.strpop1 == "Page 2")

{

page1.presence = "hidden";

page2.presence = "visible";

page3.presence = "hidden";

xfa.host.currentPage = 1;

}

else if (JSADMDlg1.strpop1 == "Page 3")

{

page1.presence = "hidden";

page2.presence = "hidden";

page3.presence = "visible";

xfa.host.currentPage = 1;

}

//console.println("pop1:" + JSADMDlg1.strpop1);

}

Using AcroDialog, you can develop your own dialogue window with how ever many choice you need and then script to change the form based on those choices.
In relation to the button on each page to bring you back to the start, a standard button on the second master page (Page2) with the following javascript in the click event will bring you back to the first page (page numbers are zero based):
xfa.host.currentPage = 0;
I hope that helps,
Niall