sethsandaru / vue-form-builder

Super Form Builder built on top of Vue with Drag & Drop functionality, savable-form-schema and easy to maintain/upgrade your form.
http://vue-form-builder.sethphat.com
MIT License
413 stars 129 forks source link

Undefined message on validation error #69

Closed abhimanusharma closed 3 years ago

abhimanusharma commented 3 years ago

Hi,

When I have set validations (required) for few fields, instead of showing some message like Fix errors before submitting or something like this so that if there is a long form user can still see why isn't the form submitting instead I see an undefined message on the top right corner.

See attached screenshot. Undefined error

sethsandaru commented 3 years ago

Hi @abhimanusharma ,

I found out the problem. Basically, it's from here:

https://github.com/sethsandaru/vue-form-builder/blob/master/src/installer.js#L47

If you replace the properties when you're registering Vue Form Builder Vue.use(..., {...}). Then you need to add the validationErrorAlertText also. I forgot to Object.assign from the default one. But there won't be problem for @v2.1.0

Thanks.

abhimanusharma commented 3 years ago

Hi @sethsandaru , I have created a PR #70 for this issue. Please check it out.