rice-framework/krad-web/src/main/webapp/krad/scripts/krad.validate.js
/**
 * Validates fields requiring validation, except for those listed, if a specified
 * condition is met.
 *
 * @param $fieldsToSkip Array of jQuery objects on which to ignore validation.
 * @param skipConditionFunc callback function which determines if validation should
 * be ignored for $fieldsToSkip.
 * @param $action(optional) element of that initiated the request, used to determine if invoked in dialog
 *
 * @returns {boolean} true if all fields requiring validation are valid, false otherwise
 */
Validates fields requiring validation, except for those listed, if a specified
condition is met.

@param $fieldsToSkip Array of jQuery objects on which to ignore validation.
@param skipConditionFunc callback function which determines if validation should
be ignored for $fieldsToSkip.
@param $action(optional) element of that initiated the request, used to determine if invoked in dialog

@returns {boolean} true if all fields requiring validation are valid, false otherwise
Validates fields requiring validation except for those listed if a specified condition is met . @param $fieldsToSkip Array of jQuery objects on which to ignore validation . @param skipConditionFunc callback function which determines if validation should be ignored for $fieldsToSkip . @param $action ( optional ) element of that initiated the request used to determine if invoked in dialog @returns { boolean } true if all fields requiring validation are valid false otherwise
function validatePartialForm($fieldsToSkip, skipConditionFunc, $action) {
    if (skipConditionFunc()) {
        $fieldsToSkip.addClass(kradVariables.IGNORE_VALIDATION_TEMP_CLASS);
        jQuery("." + kradVariables.IGNORE_VALIDATION_CLASS + ", ." + kradVariables.IGNORE_VALIDATION_TEMP_CLASS).each(function () {
            removeClientValidationError(this);
        });
    } else {
        jQuery("." + kradVariables.IGNORE_VALIDATION_TEMP_CLASS).removeClass(kradVariables.IGNORE_VALIDATION_TEMP_CLASS);
    }
    return _validateFormOrDialog($action);
}
function validatePartialForm ( $fieldsToSkip , skipConditionFunc , $action ) { if ( skipConditionFunc ( ) ) { $fieldsToSkip . addClass ( kradVariables . IGNORE_VALIDATION_TEMP_CLASS ) ; jQuery ( "." + kradVariables . IGNORE_VALIDATION_CLASS + ", ." + kradVariables . IGNORE_VALIDATION_TEMP_CLASS ) . each ( function ( ) { removeClientValidationError ( this ) ; } ) ; } else { jQuery ( "." + kradVariables . IGNORE_VALIDATION_TEMP_CLASS ) . removeClass ( kradVariables . IGNORE_VALIDATION_TEMP_CLASS ) ; } return _validateFormOrDialog ( $action ) ; }
Validates fields requiring validation, except for those listed, if a specified
 condition is met.
Validates fields requiring validation except for those listed if a specified condition is met .