Topic: Validation not working since v4.12

Damien Cussen priority asked 4 years ago


I have upgraded to v 4.12.0 (This was done by copying and overwriting the files in my web directory CSS/JS etc)

Since then the form validation is now working (When i copy back in previous version 4.11 it does)

Sample code:

<form name="additem" class="needs-validation"  method="post" action="process....." novalidate>
<div class="col-md-12">
    <div class="md-form">
        <input type="text" name="location" id="location" class="form-control" required>
        <label for="location">Site Location</label>
        <div class="invalid-feedback">
            Please enter a Location
        </div>
    </div>
</div>

<button class="btn btn-blue-grey" type="submit">Save New Call</button>

What am i missing? When i remove the novalidate option from the form tag the standard validation works - the issue is with the material validation


Grzegorz Bujański staff commented 4 years ago

Hi. I checked this in 4.13.0. Works fine.


Damien Cussen priority commented 4 years ago

Found the issue - PICNIC error on my part! Originally had the initialisation script tag as follows

--- code here

this worked until v 4.12.0

Once i changed to

--- code here

It worked going forward.


Grzegorz Bujański staff commented 4 years ago

Hi. I'm glad you solve the problem. Best, Grzegorz



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: Priority
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.12.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No