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

Most upvoted comments

@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… 😁