Re:Perform validation onsubmit

yes @rober_sinclair it wont stop submit unless in your custom JS document ready, you return False in the OnClick of the Save buttons of edit view in header and footer. That way once your validation passes, call the Save button code as


var _form = document.getElementById('EditView');
 _form.action.value='Save';
 if(check_form('EditView'))SUGAR.ajaxUI.submitForm(_form);return false;
1 Like