Problem/Motivation

As seen in https://getbootstrap.com/docs/4.0/components/forms/?#validation.
The error messages displayed by IFE can use the same style as the link above.

Proposed resolution

Use the styling for form elements.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

yongt9412 created an issue. See original summary.

johnchque’s picture

Been testing this and checking its behavior:

Having problems with checkboxes and textareas.
In checkboxes the message is simply not added.
In textareas the error message is present in the markup but since the div where the error is should be inside the div containing the textarea, the error is never shown.

pivica’s picture

Title: Use validation framework for IFE » Use Bootstrap validation framework for IFE
pivica’s picture

Here is a new version which improves IEF support a lot, fix all problems from comment 2 and also generally improves forms styling quite a bit. Here is a new look at a complex webform example:

@yongt9412 can you check new version and test it a bit?

johnchque’s picture

This actually works really nice, tested with different fields and the results are as expected. Should we move on on this and create an issue for adding validation styling on client-side?

berdir’s picture

Status: Needs review » Reviewed & tested by the community

Yes, looks ok to me as well.

  • pivica committed 4c486d8 on 8.x-1.x
    Issue #2955290 by yongt9412, pivica, Berdir: Use Bootstrap validation...
pivica’s picture

Status: Reviewed & tested by the community » Fixed

Thx guys committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.