Checkbox clicked to go to next page

Avatar

Avatar

kumari1112

Avatar

kumari1112

kumari1112

02-08-2010

I m trying to get a accept/decline check box working in livecycle designer. If the accept box is not checked it will not let you go on to next page. How do I create this? Does someone have an example of working PDF? Before the user hit the submit button, checkbox should be clicked.

View Entire Topic

Avatar

Avatar

kumari1112

Avatar

kumari1112

kumari1112

03-08-2010

Ok I did it. I have one Checkbox and one Next Page button. I applied the code on Next Page and have Checkbox checked to go to next page. below is the code:

----- form1.#subform[0].NextPage::click: - (JavaScript, both) --------------------------------------

// Go to the next page.

if

(CheckBox1.rawValue == 1){

xfa.host.messageBox("Submitting the form");

xfa.host.pageDown( );

/****

Place all your Submission code in this place.

**/

}

else

{

xfa.host.messageBox("Please enter the Mandatory fields before submitting the form");

}

//xfa.host.pageDown( );

Thank you so much for giving me head start.