Option to silence error messages inside form
See original GitHub issueHi,
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.
Issue Analytics
- State:
- Created 10 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
Suppress error message when using fitdist ... - Stack Overflow
Suppress error message when using fitdist() from the fitdistrplus package · try() with silent = TRUE . · conditionMessage() gives the same result....
Read more >Suppress/modify the error message of "The form cannot be ...
Click on the condition to bring up the condition window and select your required field, and the option "is blank".
Read more >Video: Input and error messages - Microsoft Support
Training: To help people decide what drop-down list option to select, and even to let them know that a cell contains a drop-down...
Read more >Error Messages: Examples, Best Practices & Common Mistakes
Designing error messages is all about limiting the frustration users feel with your form. If they're too stressed—too much cortisol builds up— ...
Read more >Options to Request or Suppress Warnings — gcc 6 ... - Fedora
Limits the maximum number of error messages to n, at which point GCC bails out ... Each of these specific warning options also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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… 😁As of the current date, the following worked for me:
data-parsley-errors-messages-disabled
I added this value as an attribute to the form element as follows:
<form data-parsley-validate data-parsley-errors-messages-disabled id="form-id" >
According to the API documentation: