rice-framework/krad-web/src/main/webapp/krad/scripts/krad.actions.js
/**
 * Disables client side validation on any inputs within the element(by id) passed in , if
 * that element is hidden.  Otherwise, it turns input validation back on if the element and
 * its children are visible
 *
 * @param id - id for the component for which the input hiddens should be processed
 */
Disables client side validation on any inputs within the element(by id) passed in , if
that element is hidden.  Otherwise, it turns input validation back on if the element and
its children are visible

@param id - id for the component for which the input hiddens should be processed
Disables client side validation on any inputs within the element ( by id ) passed in if that element is hidden . Otherwise it turns input validation back on if the element and its children are visible @param id - id for the component for which the input hiddens should be processed
function hiddenInputValidationToggle(id) {
    var element = jQuery("#" + id);
    if (element.length) {
        if (element.css("display") === "none") {
            jQuery(":input:hidden", element).each(function () {
                storeOriginalDisabledProperty(jQuery(this));
                jQuery(this).addClass("ignoreValid");
                if (!jQuery(this).is("input[type='hidden']")) {
                    jQuery(this).prop("disabled", true);
                }
            });
        }
        else {
            jQuery(":input:visible", element).each(function () {
                storeOriginalDisabledProperty(jQuery(this));
                jQuery(this).removeClass("ignoreValid");
                jQuery(this).prop("disabled", jQuery(this).data('original-disabled'));
            });
        }
    }
}
function hiddenInputValidationToggle ( id ) { var element = jQuery ( "#" + id ) ; if ( element . length ) { if ( element . css ( "display" ) === "none" ) { jQuery ( ":input:hidden" , element ) . each ( function ( ) { storeOriginalDisabledProperty ( jQuery ( this ) ) ; jQuery ( this ) . addClass ( "ignoreValid" ) ; if ( ! jQuery ( this ) . is ( "input[type='hidden']" ) ) { jQuery ( this ) . prop ( "disabled" , true ) ; } } ) ; } else { jQuery ( ":input:visible" , element ) . each ( function ( ) { storeOriginalDisabledProperty ( jQuery ( this ) ) ; jQuery ( this ) . removeClass ( "ignoreValid" ) ; jQuery ( this ) . prop ( "disabled" , jQuery ( this ) . data ( 'original-disabled' ) ) ; } ) ; } } }
Disables client side validation on any inputs within the element(by id) passed in , if
 that element is hidden.
Disables client side validation on any inputs within the element ( by id ) passed in if that element is hidden .
//disable hidden inputs to prevent from being submitted unless it is a hidden field
 //return to original disabled property value
