b.vanminnen pro asked 7 years ago


I’ve a couple of questions about the form input example with the following code: <form> <!--First row--> <div class="row"> <!--First column--> <div class="col-md-12"> <div class="md-form"> <i class="fa fa-envelope prefix"></i> <input type="email" id="form81" class="form-control validate"> <label for="form81" data-error="Please enter a valid email address" data-success="right">Type your email</label> </div> </div> <!--/.First row--> </form> 1. When a type some text in the email input box example under section ‘Using the Grid’ (http://mdbootstrap.com/components/forms/) a ‘cross’ appears next to the text giving the user the possibility to delete the text phrase at once. When I run the code above on my machine the cross doesn’t appear… 2. Larger (error) messages are wrapped instead of displayed on a single row (please run the example above)… 3. The (error) message is displayed really close to the input box. When I look at the Material Design specs (https://material.google.com/patterns/errors.html#errors-user-input-errors) there’s more space in between… 4. How to apply a required message on leaving an empty, required field?

b.vanminnen pro answered 7 years ago


1. I investigated the "cross" a bit further and it seems to popup in Microsoft Edge. Nevertheless a nice feature to have in all available browsers. Will send you an e-mail with the screen print; but also easy to reproduce with Edge using the example on: http://mdbootstrap.com/components/forms/ 2. Ok. Would in my opinion be nicer to use the length of the input box instead. 3. Thanks! 4. Ok.

Michal Szymanski staff answered 7 years ago


1. Can you provide the screen of that "cross"? 2. Error/success message is always the same length as label, because it uses :after selector on label 3. We'll improve that 4. MDB doesn't provide such a functionality. To do that you need some additional script which let you submit the entire form and display a proper message for required empty fields.

b.vanminnen pro answered 7 years ago


I'm using the same quotes as you, probably they were converted somewhere during copy/pasting the code inside this editor. For your reference see below, please help: <div class="container"> <form> <!--First row--> <div class="row"> <!--First column--> <div class="col-md-12"> <div class="md-form"> <i class="fa fa-envelope prefix"></i> <input type="email" id="form81" class="form-control validate"> <label for="form81" data-error="Please enter a valid email address" data-success="right">Type your email</label> </div> </div> <!--/.First row--> </div> </form> </div>

Michal Szymanski staff answered 7 years ago


I cannot reproduce the errors because it's seems your html markup is incorrect. I don't know why, but double quotes you use aren't interpreted correct by my editor and any browser.
” <- your double quote
" <- my double quote
Please check if it can cause a problem and later come back to me so we can work further on your problems.

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags