Topic: Trigger Input Error Message on Submit
<form [formGroup]="loginForm" (ngSubmit)="onSubmit()"> <div class="md-form"> <input class="form-control" id="email" name="email" type="text" formControlName="email" mdbInputDirective [validateError]="true" [validateSuccess]="false" [errorMessage]="errorMessage"> <label for="email">Email</label> </div> <div class="md-form"> <input class="form-control" id="password" name="password" type="password" formControlName="password" mdbInputDirective [validateError]="true" [validateSuccess]="false" [errorMessage]="errorMessage"> <label for="password">Password</label> </div> <button class="btn-block waves-light" type="submit" color="primary" mdbBtn mdbWavesEffect>Login</button> </form>
Arkadiusz Idzikowski staff answered 6 years ago
MHarmony pro commented 6 years ago
Any update on fixing this? This is a pretty normal feature to have.
Arkadiusz Idzikowski staff commented 6 years ago
Sadly, this problem has not been fixed yet.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.2
- Device: Desktop
- Browser: Chrome
- OS: Windows 10
- Provided sample code: No
- Provided link: No