question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to silence error messages inside form

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
karlingencommented, Feb 20, 2017

@oprichnik Can this be set on the form? I have tried the following approach but it doesn’t:

$('#steps').parsley({
    "errors-messages-disabled": true
});

It only works when I add it to the input field.

EDIT: it worked by setting errorsMessagesDisabled: true. Obviously… 😁

0reactions
dwilhel1commented, Oct 11, 2018

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:

Add parsley-success and parsley-error classes on field, but no error message.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found