g_fnCustomValidationFcn = CheckboxTerms; function CheckboxTerms() { if(document.forms[0].UDF1000.checked == false) { alert('Please check the box confirming that you are a financial professional in order to continue.'); return false; } else { return true; } }