imports/vx/client/code/ux.js
/**
     * Iterate over the components in a form to ensure that all required
     * fields have values and that none of those fields have errors.
     *
     * @param {object} form Form to check.
     * @param {array} excludeComponentIds Optional array of IDs of components to exclude.
     * @return {boolean} True if form is complete and valid.
     */
Iterate over the components in a form to ensure that all required
fields have values and that none of those fields have errors.

@param {object} form Form to check.
@param {array} excludeComponentIds Optional array of IDs of components to exclude.
@return {boolean} True if form is complete and valid.
Iterate over the components in a form to ensure that all required fields have values and that none of those fields have errors . @param { object } form Form to check . @param { array } excludeComponentIds Optional array of IDs of components to exclude . @return { boolean } True if form is complete and valid .
checkForm(form, excludeComponentIds) {
        for (let component of form.components) {
            if (excludeComponentIds && _.contains(excludeComponentIds, component.props.id)) {
                OLog.debug("ux.js checkForm excluded componentId=" + component.props.id)
                continue
            }
            if (!UX.checkComponentRequired(component)) {
                return false
            }
            if (component.state.error) {
                UX.notify({ success : false, icon : "TRIANGLE", key : "common.errors_on_form"})
                return false
            }
        }
        return true
    }
checkForm ( form , excludeComponentIds ) { for ( let component of form . components ) { if ( excludeComponentIds && _ . contains ( excludeComponentIds , component . props . id ) ) { OLog . debug ( "ux.js checkForm excluded componentId=" + component . props . id ) continue } if ( ! UX . checkComponentRequired ( component ) ) { return false } if ( component . state . error ) { UX . notify ( { success : false , icon : "TRIANGLE" , key : "common.errors_on_form" } ) return false } } return true }
Iterate over the components in a form to ensure that all required
 fields have values and that none of those fields have errors.
Iterate over the components in a form to ensure that all required fields have values and that none of those fields have errors .