imports/vx/both/code/vxapp.js
/**
     * Ensure required fields have values.
     *
     * @param {string} value Value to test.
     * @param {number} index Index of row containing value.
     * @param {array} messages Array of messages.
     * @param {string} fieldIdKey i18n bundle key of field-identifier message.
     * @param {object} fieldIdVariables Variables to insert into field-identifier message.
     */
Ensure required fields have values.
@param {string} value Value to test.
@param {number} index Index of row containing value.
@param {array} messages Array of messages.
@param {string} fieldIdKey i18n bundle key of field-identifier message.
@param {object} fieldIdVariables Variables to insert into field-identifier message.
Ensure required fields have values . @param { string } value Value to test . @param { number } index Index of row containing value . @param { array } messages Array of messages . @param { string } fieldIdKey i18n bundle key of field - identifier message . @param { object } fieldIdVariables Variables to insert into field - identifier message .
validateRequired(value, index, messages, fieldIdKey, fieldIdVariables) {
        if (!!value) {
            return true
        }
        const result = { success : false, icon : "TRIANGLE", key : "common.invalid_required_field_missing" }
        VXApp.validateCreateMessage(result, index, messages, fieldIdKey, fieldIdVariables, value)
        return false
    }
validateRequired ( value , index , messages , fieldIdKey , fieldIdVariables ) { if ( ! ! value ) { return true } const result = { success : false , icon : "TRIANGLE" , key : "common.invalid_required_field_missing" } VXApp . validateCreateMessage ( result , index , messages , fieldIdKey , fieldIdVariables , value ) return false }
Ensure required fields have values.
Ensure required fields have values .