Topic: Input Error Bug
itdev pro asked 6 years ago
The <small class="text-danger"> tag under the label is not displaying the error for the input right under the bar.
<div class="md-form"> <i class="fa fa-envelope fa-fw prefix"></i> <input mdbActive type="email" class="form-control" id="form9" name="email"mdbInputValidate> <label class="active" for="form9">Type your e-mail</label> <small class="text-danger">Invalid Email</small> </div>
itdev pro answered 6 years ago
itdev pro answered 6 years ago
itdev pro commented 6 years ago
How can I upload an image? I took a screen shotDamian Gemza staff commented 6 years ago
Hello dear arcusscale, Please if you want to validate email, instead of type="text" please use type="email". For now, we validate only two types: email and password. In next update we will add extended support for validating other types of inputs. And then you could delete with invalid format text. Best Regards, DamianDamian Gemza staff commented 6 years ago
Here i paste you your's code with those changes. If you want to edit wrong or success message, please head to input-validate.directive.ts file located in:/free/inputs/input-validate.directive.ts <div> <pre><form> <div class="md-form"> <i class="fa fa-envelope prefix"></i> <input mdbActive type="email" class="form-control" id="form9" name="email" mdbInputValidate> <label class="active" for="form9">Type your e-mail</label> </div> </form></pre> </div>Damian Gemza staff answered 6 years ago
<div class="md-form"> <i class="fa fa-envelope prefix"></i> <input mdbActive type="text" class="form-control counter-danger" id="form9" name="email" mdbInputValidate> <span class="inputVal text-danger my-5">invalid format</span> <label class="active" for="form9">Type your e-mail</label> </div>
itdev pro commented 6 years ago
The code you provided does not work. The red text is always visible about 50px below the input field https://mdbootstrap.com/angular/components/inputs/#input-fieldsDamian Gemza staff commented 6 years ago
Could you share me a screen or your's code?Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No