diff --git a/ayanova/src/api/gzform.js b/ayanova/src/api/gzform.js index 59cdbf2b..4295fc48 100644 --- a/ayanova/src/api/gzform.js +++ b/ayanova/src/api/gzform.js @@ -716,6 +716,17 @@ export default { }); }, /////////////////////////////// + // childRowErrorClass + // returns class to set on row if error exists for row + // else returns nothing + // + childRowErrorClass(vm, collectionName, rowIndex) { + if (this.childRowHasError(vm, collectionName, rowIndex)) { + return "font-weight-black font-italic error--text"; + } + return null; + }, + /////////////////////////////// // ShowMe // (returns false if the field has been set to hidden by the user in the formcustomtemplate) // NOTE: that in a form this should only be used with non stock-required fields, if they are already required they cannot be hidden diff --git a/ayanova/src/components/tag-picker.vue b/ayanova/src/components/tag-picker.vue index b652b7cd..246ff77c 100644 --- a/ayanova/src/components/tag-picker.vue +++ b/ayanova/src/components/tag-picker.vue @@ -17,6 +17,8 @@ chips deletable-chips cache-items + :rules="rules" + :error-messages="errorMessages" >