@@ -66,9 +66,12 @@ const sections = [
6666 // required is not needed if we specifiy validations
6767 // required: true,
6868 validations : 'isRequired,minLength:160' ,
69+ // providing default error message to handle isRequired validation
70+ // somehow, it is not picking up error message from validationErrors object
71+ validationError : 'Please provide a description' ,
6972 validationErrors : {
70- ' isRequired' : 'Please provide a description' ,
71- ' minLength' : 'Please enter at least 160 characters'
73+ isRequired : 'Please provide a description' ,
74+ minLength : 'Please enter at least 160 characters'
7275 } ,
7376 fieldName : 'description' ,
7477 description : 'Brief Description' ,
@@ -329,9 +332,12 @@ export const basicSections = [
329332 // required is not needed if we specifiy validations
330333 // required: true,
331334 validations : 'isRequired,minLength:160' ,
335+ // providing default error message to handle isRequired validation
336+ // somehow, it is not picking up error message from validationErrors object
337+ validationError : 'Please provide a description' ,
332338 validationErrors : {
333- ' isRequired' : 'Please provide a description' ,
334- ' minLength' : 'Please enter at least 160 characters'
339+ isRequired : 'Please provide a description' ,
340+ minLength : 'Please enter at least 160 characters'
335341 } ,
336342 fieldName : 'description' ,
337343 description : 'Brief Description' ,
0 commit comments