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.
Views
Replies
Total Likes
You can check for the rawValue of the checkbox and if they have not checked you can display a message to the user and stop the submit process.
Check the sample..
https://acrobat.com/#d=CZz1*ZVR977V710my6hTQg
Thanks
Srini
Views
Replies
Total Likes
Do you have an example for Checkbox? I have Checkbox where the user clicks to accept the terms before Submit? When I click on my CheckBox1 my EventwithScripts section is disabled, i m not able to write the javascript
You can check for the rawValue of the checkbox and if they have not checked you can display a message to the user and stop the submit process. The sample is for Textbox.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies