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!
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