Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support regex validation #2

Open
dmolineus opened this issue Sep 4, 2015 · 2 comments
Open

Support regex validation #2

dmolineus opened this issue Sep 4, 2015 · 2 comments
Assignees

Comments

@dmolineus
Copy link
Member

As for example the email validation differes between Contao and form validation there should be an option to support at least custom regex validators.

@dmolineus dmolineus self-assigned this Sep 4, 2015
@GMTeams
Copy link

GMTeams commented Jun 12, 2018

Does the extension have the possibility for validators e.g. 'between' or 'greaterThan'?

Now I can check if a textfield is empty or not. Thats not very much functionality, I would need the validators which are supported by formvalidation.io

If it's not possible out of the box, would there be a way to add the validators manually?

Thank you very much.

@dmolineus
Copy link
Member Author

The feature to support advanced validators is not added yet. Even though the technical base is prepared for it. You could use the BuildValidationFieldEvent https://github.com/netzmacht/contao-form-validation/blob/master/src/Event/BuildValidationFieldEvent.php to provide custom validators and the Contao hooks in the backend.

The concept included to configure such validators in the backend. I doubt that I'll add it on my own. The formvalidation library seems to be dead. No updates since 2015 and the domain is not available right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants