Topic: How to display all error validator when button is clicked

junior5417 pro asked 6 years ago


Hi, My validator error messages only displayed if the focus is on input. How do I check and display all the errorMessages in the formgroup using a button?
<input mdbInputDirective id="addressName" formControlName="addressName" type="text" class="form-control" id="addressName" [validateSuccess]="false" [errorMessage]="validatorErrorMessage.nameError">

junior5417 pro answered 6 years ago


Hi, Noted. Any good workarounds to achieve this result using MDB pro?

Damian Gemza staff commented 6 years ago

Unfortunately not. As I said to you before, this feature requires to override some of our validation code, so there's no workaround for now.

Damian Gemza staff answered 6 years ago


Dear junior5417, Unfortunately, for now, there's no possibility to display all error messages from the form when clicking on submit button. Implementing this feature requires from us to rewrite the validation directive. I'll add this to our nice-to-have features list, and we'll think about implementing this in the future. Best Regards, Damian

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 6.2.2
  • Device: Desktop
  • Browser: Chrome
  • OS: Mac/Windows
  • Provided sample code: Yes
  • Provided link: No