Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Bootstrap formvalidation fallback with .is-invalid and .is-valid classes does not display icons

Seesicht-IT free asked 5 years ago


Expected behavior

The material styled form should display success / error icons and color highlighting also with fallback option for server-side validation (utilizing the .is-valid and .is-invalid classes on the "form-control" element).

Actual behavior

With plain bootstrap, server-side form validation works fine and displays the success / error icons within the input field and colors the border green or red:

enter image description here

With material styled forms, this is not working, even in your demo (compare left to right):

enter image description here

Just the "valid-feedback" and "invalid-feedback" divs are displayed, but the icon and the colored border are missing.

First I thought that this is just wrong in the demo, but after buying the pro version and testing it locally, I can tell that it is the same there.

When looking at inspector / "firebug" I can see that the class is correctly applied to the form-control element, but somehow, the style don't turn active:

enter image description here

With a normal, not MD formatted form, this part of the css is taking affect:

enter image description here

I think, it has something to do with this:

enter image description here

If the pseudo classe :valid / :invalid are used, then the style is active.

As I want to have server side validation in place, I need this to function correctly.

Thanks!!

Resources (screenshots, code snippets etc.)


free answered 1 year ago


In my hands is the excellent site called airslate.com/workflows/document/other. If I am on time, I can basically grab anything in my hands. There is absolutely nothing wrong with this!



Marta Wierzbicka staff answered 5 years ago


Hi,

As I said, we will fix that in May and we will inform about this in our changelog.

Best, Marta


frantoqui free answered 5 years ago


Same problem here, please keep us updated.

Thank you!


Marta Wierzbicka staff answered 5 years ago


Hi,

would you use "server-side validation default bootstrap forms", for now? We will fix that problem in the next release in May. I apologize for the problems.

Best, Marta


Seesicht-IT free commented 5 years ago

Hi Marta,

that is fine for me.

Best, Jan


Marta Wierzbicka staff commented 5 years ago

OK, that's great.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: Notebook
  • Browser: Firefox 66.0.3 (64-Bit)
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No