rice-framework/krad-web/src/main/webapp/krad/scripts/krad.validate.js
/**
 * Validate that a specific field's control defined by the selector/jQuery array passed in.  Also calls dependsOnCheck
 * to validate any dependant fields.
 *
 * @param fieldControl selector/jQuery array that represents the control to validate
 */
Validate that a specific field's control defined by the selector/jQuery array passed in.  Also calls dependsOnCheck
to validate any dependant fields.

@param fieldControl selector/jQuery array that represents the control to validate
Validate that a specific field ' s control defined by the selector / jQuery array passed in . Also calls dependsOnCheck to validate any dependant fields . @param fieldControl selector / jQuery array that represents the control to validate
function validateFieldValue(fieldControl) {
    if (jQuery(fieldControl).attr('id').match(new RegExp(kradVariables.ID_SUFFIX.ADD_LINE_INPUT_FIELD))
            && !jQuery(fieldControl).val()) {
        return true;
    }
    if (jQuery(fieldControl).attr('id').match(/ID_SUFFIXADD_LINE_INPUT_FIELD/)) {
        jQuery(fieldControl).removeClass("ignoreValid");
        return true;
    }
    var hadIgnore = false;
    if (jQuery(fieldControl).hasClass("ignoreValid")) {
        jQuery(fieldControl).removeClass("ignoreValid");
        hadIgnore = true;
    }
    clientErrorExistsCheck = true;
    if (jQuery(fieldControl).is(kradVariables.DIALOG_SELECTOR + ":hidden [data-role='Control']")) {
        return true;
    }
    var valid = jQuery(fieldControl).valid();
    dependsOnCheck(fieldControl, new Array());
    clientErrorExistsCheck = false;
    if (hadIgnore) {
        jQuery(fieldControl).addClass("ignoreValid");
    }
    return valid;
}
function validateFieldValue ( fieldControl ) { if ( jQuery ( fieldControl ) . attr ( 'id' ) . match ( new RegExp ( kradVariables . ID_SUFFIX . ADD_LINE_INPUT_FIELD ) ) && ! jQuery ( fieldControl ) . val ( ) ) { return true ; } if ( jQuery ( fieldControl ) . attr ( 'id' ) . match ( / ID_SUFFIXADD_LINE_INPUT_FIELD / ) ) { jQuery ( fieldControl ) . removeClass ( "ignoreValid" ) ; return true ; } var hadIgnore = false ; if ( jQuery ( fieldControl ) . hasClass ( "ignoreValid" ) ) { jQuery ( fieldControl ) . removeClass ( "ignoreValid" ) ; hadIgnore = true ; } clientErrorExistsCheck = true ; if ( jQuery ( fieldControl ) . is ( kradVariables . DIALOG_SELECTOR + ":hidden [data-role='Control']" ) ) { return true ; } var valid = jQuery ( fieldControl ) . valid ( ) ; dependsOnCheck ( fieldControl , new Array ( ) ) ; clientErrorExistsCheck = false ; if ( hadIgnore ) { jQuery ( fieldControl ) . addClass ( "ignoreValid" ) ; } return valid ; }
Validate that a specific field's control defined by the selector/jQuery array passed in.
Validate that a specific field ' s control defined by the selector / jQuery array passed in .
// skip validation for add line fields unless there is a value. The add button will handle validation
 //remove the ignore class if any due to a bug in the validate 
 //plugin for direct validation on certain types
 // skip fields in hidden dialogs
 //the validation call
