I am using a checkbox for users to indicate that they agree to the forms terms and conditions. On Submit how can I validate that the box was checked and if not block the Submit process from completing until the checkbox is selected.
Views
Replies
Total Likes
Make the submit button presence 'hidden', add a second button that performs the check box validation and if the validation succeeds, call 'click' on the submit button.
// form1.page1.subform1.callSubmitBtn::click - (JavaScript, client)
if (form1.page1.subform1.cb.rawValue == "0") {
xfa.host.messageBox("Please agree to terms and conditions.","Agree",0);
}
else {
form1.page1.subform1.submitBtn.execEvent("click");
}
Views
Replies
Total Likes