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
414 stars 129 forks source link

Validation regex not available #80

Closed abdullahcanakci closed 3 years ago

abdullahcanakci commented 3 years ago

Hi, I tried to set a regex validation on a field as per documentation. But I think either code or documentation is erronous on that matter.

There is a regex validation available on fields as per this ref. https://github.com/sethsandaru/vue-form-builder/blob/b16f3e2d4436603c7f3089f3e8d45e3d24c50f4e/src/configs/validation.js#L40-L47

But because there is no corresponding branch here it throws an error. https://github.com/sethsandaru/vue-form-builder/blob/b16f3e2d4436603c7f3089f3e8d45e3d24c50f4e/src/libraries/validation.js#L94-L115

like Error in event handler for "renderer.run_validation": "TypeError: This validation type regex is not supported

abhimanusharma commented 3 years ago

Thanks for the explanation

Copy of #78

sethsandaru commented 3 years ago

Thanks, v2.1.0 is released and added the regex validation. Documentation coming soon!