These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Hide/Show Pages Based On Dropdown Selection

drizagon
Registered: Oct 22 2009
Posts: 41

Hello,

This one is driving me crazy. In a form I have created, I have 3 checkboxes and based on what is checked, I want to hide the first page and navigate to the 1st checked box. It works for the Web Chat option (which is page 2), but all others do not. All others show a blank page and the selected page below. Using LiveCycle and javascripting.

if (MainPage.WebChatChk.rawValue == 1 && MainPage.EmailChk.rawValue == 0 && MainPage.PhoneChk.rawValue == 0);{

CommunicationServiceRequestForm.WebChatReq.presence = "visible";
CommunicationServiceRequestForm.MainPage.presence = "hidden";
CommunicationServiceRequestForm.EmailReq.presence = "hidden";
CommunicationServiceRequestForm.PhoneReq.presence = "hidden";
}
if (MainPage.WebChatChk.rawValue == 1 && MainPage.EmailChk.rawValue == 0 && MainPage.PhoneChk.rawValue == 1);{

CommunicationServiceRequestForm.WebChatReq.presence = "visible";
CommunicationServiceRequestForm.MainPage.presence = "hidden";
CommunicationServiceRequestForm.EmailReq.presence = "hidden";
CommunicationServiceRequestForm.PhoneReq.presence = "hidden";
}

if (MainPage.WebChatChk.rawValue == 1 && MainPage.EmailChk.rawValue == 1 && MainPage.PhoneChk.rawValue == 0);{

CommunicationServiceRequestForm.WebChatReq.presence = "visible";
CommunicationServiceRequestForm.MainPage.presence = "hidden";
CommunicationServiceRequestForm.EmailReq.presence = "hidden";
CommunicationServiceRequestForm.PhoneReq.presence = "hidden";
}

if (MainPage.WebChatChk.rawValue == 1 && MainPage.EmailChk.rawValue == 1 && MainPage.PhoneChk.rawValue == 1);{

CommunicationServiceRequestForm.WebChatReq.presence = "visible";
CommunicationServiceRequestForm.MainPage.presence = "hidden";
CommunicationServiceRequestForm.EmailReq.presence = "hidden";
CommunicationServiceRequestForm.PhoneReq.presence = "hidden";
}

if (MainPage.WebChatChk.rawValue == 0 && MainPage.EmailChk.rawValue == 1 && MainPage.PhoneChk.rawValue == 0);{

CommunicationServiceRequestForm.WebChatReq.presence = "hidden";
CommunicationServiceRequestForm.MainPage.presence = "hidden";
CommunicationServiceRequestForm.EmailReq.presence = "visible";
CommunicationServiceRequestForm.PhoneReq.presence = "hidden";
}

if (MainPage.WebChatChk.rawValue == 0 && MainPage.EmailChk.rawValue == 1 && MainPage.PhoneChk.rawValue == 1);{

CommunicationServiceRequestForm.WebChatReq.presence = "hidden";
CommunicationServiceRequestForm.MainPage.presence = "hidden";
CommunicationServiceRequestForm.EmailReq.presence = "visible";
CommunicationServiceRequestForm.PhoneReq.presence = "hidden";
}

if (MainPage.WebChatChk.rawValue == 0 && MainPage.EmailChk.rawValue == 0 && MainPage.PhoneChk.rawValue == 1);{

CommunicationServiceRequestForm.WebChatReq.presence = "hidden";
CommunicationServiceRequestForm.MainPage.presence = "hidden";
CommunicationServiceRequestForm.EmailReq.presence = "hidden";
CommunicationServiceRequestForm.PhoneReq.presence = "visible";
}

As always, any help is appreciated!

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
The problem are of the the settings of the pagnination.
I know, this can be very annoying.

This example works a expected. Hope this helps.

[url]https://acrobat.com/#d=QEU1sTOZt2qZkdK*u9ro6g[/url]

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs