1 Reply Latest reply on Apr 13, 2010 8:20 AM by Steve L Walker

    Agree to terms and conditions check box

    GaryBarham Level 1

      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.

        • 1. Re: Agree to terms and conditions check box
          Steve L Walker Level 5

          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 {