contributte / live-form-validation

:no_entry: Nice client-side live form validation for Nette Forms.

Home Page:https://contributte.org/packages/contributte/live-form-validation.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting options without editing live-form-validation.js

rolandtoth opened this issue · comments

As I see there's no way to set options without editing "live-form-validation.js". It would be handy to be able to set custom options outside the js file, so one could copy the original js to another project or use different options on forms within one project.

I can share my working code if you're interested. It extends LiveForm.options with a user-defined options object.

Hi, it would be great if you can share your code as pull request.

Thanks for that.

I realized better way of doing it. See b0a277e and updated readme.