Parsley.js: Option to silence error messages inside form
Hi,
would it be possible to add an option to order Parsley not to report error messages? My use case is this: I use my own form builder to create forms, that displays errors in designated place inside form. Hooking Parsley inside my code was easy but I had to silence its reports by:
parsley-error-list {
display: none !important;
}
All I’m interested is “tell me if all values are valid or not”, or better “tell me what fields contain invalid values” - I’ll report this to user my own way. Parsley does it’s validation job perfectly (for my needs, at least 😃 but talks too much 😃 Using CSS to silence Parsley works, no doubt about that, but I just thought it’d be nice to have an option for this behavior - it’d be more straightforward, readable and understandable.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 17 (4 by maintainers)
Commits related to this issue
- - added option to silence errors `data-show-errors="false"`. Refs #214 — committed to guillaumepotier/Parsley.js by guillaumepotier 11 years ago
- - fix silent validation. Refs #214 — committed to guillaumepotier/Parsley.js by guillaumepotier 11 years ago
- Update Parsley.js to 1.1.16 Code from: https://github.com/guillaumepotier/Parsley.js Includes the particularly useful addition of turning off errors with data-attribute 'data-show-errors'. https://g... — committed to fredj/cdnjs by deleted user 11 years ago
@oprichnik Can this be set on the form? I have tried the following approach but it doesn’t:
It only works when I add it to the input field.
EDIT: it worked by setting
errorsMessagesDisabled: true
. Obviously… 😁