How can i validate a checkbox control?
-
Dear all, My issue is that I don't want to submit the form is the checkbox isn't checked and i want to make it through validators which validator should i use and how?
Best Regards 3ala2 :)
Use javascript
Thomas
-
Use javascript
Thomas
-
Dear all, My issue is that I don't want to submit the form is the checkbox isn't checked and i want to make it through validators which validator should i use and how?
Best Regards 3ala2 :)
-
Dear all, My issue is that I don't want to submit the form is the checkbox isn't checked and i want to make it through validators which validator should i use and how?
Best Regards 3ala2 :)
I did it... var ucName = "UcPayToAccountant1_"; function jsValidate() { if ( checkAmount() && checkDone() ) { Page_ClientValidate(); return true; } else { return false; } } // End Function function checkAmount() { var amount = document.getElementById(ucName + "txtAmount").value; if ( isNaN(amount) ) { return false; } else { return true; } } // End Function function checkDone() { var done = document.getElementById(ucName + "chkDone"); if (done.checked) { return true; } else { return false; } } // End Function added the onclick attribute the button so using Page_ClientValidate(); function which the validator generates solved the probelm
Best Regards 3ala2 :)