The Icon plugin generates the following markup for icon:
<i data-field="FIELD_NAME" class="fv-plugins-icon CSS_CLASSES"></i>
In some cases, the icons aren't shown properly. Understanding the markup of icon and customizing the value of top
and right
properties for icon's class, you can adjust the feedback icon to deserved position.
<style>
.fv-plugins-bootstrap .form-group.inputGroupContainer .fv-plugins-icon,
.fv-plugins-bootstrap .form-group.selectContainer .fv-plugins-icon {
// Customize the icon's position
right: -20px;
}
</style>
<div class="form-group row inputGroupContainer">
...
</div>
<div class="form-group row selectContainer">
...
</div>
Hiding icon for particular field
Since each icon element for given field has data-field="FIELD_NAME"
attribute, we can easily hide the icon by adding one more CSS property as:
<style>
.fv-plugins-icon[data-field='phoneNumber'] {
display: none;
}
</style>
<input name="phoneNumber" />
See also