Topic: input fields length
gerdhuber pro asked 3 years ago
Expected behavior i want to have the possibility, to have a label before a field and to specify the length of the input field. Is that possible like in Version 4 Actual behavior
Resources (screenshots, code snippets etc.)
<!-- Grid row -->
<div class="form-group row">
<!-- Default input -->
<label for="inputtext" class="col-sm-2 col-form-label">Nachname</label>
<div class="col-sm-5">
<input value="Brunner" type="text" class="form-control is-valid form-control-sm" name="a_dt_bearbeiter_name" id="a_dt_bearbeiter_name" placeholder="Text">
<div class="valid-feedback">
</div>
</div>
</div>
Grzegorz Bujański staff answered 3 years ago
Do you mean something like this? https://mdbootstrap.com/snippets/standard/grzegorz-bujanski/2868143
I've also set maxlength="2"
here and it works fine.
gerdhuber pro commented 3 years ago
Thank you, this works fine. How can i change the length from the field? I mean a normal text-field or a datepicker
Grzegorz Bujański staff commented 3 years ago
The same way. Add maxlength="2"
. This should prevent for user to type more than 2 characters.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Pro
- Premium support: No
- Technology: MDB Standard
- MDB Version: 3.2.0
- Device: PC
- Browser: all
- OS: win 10
- Provided sample code: No
- Provided link: No