Try adding this to your custom js:
setInterval(function () {
// Remove first
jQuery(".customValidationClass").each(function () {
if (jQuery(this).find(".dffs-formvalidation").length === 0) {
jQuery(this).removeClass("customValidationClass");
}
});
// Add if not already present
jQuery(".dffs-formvalidation").each(function () {
if (jQuery(this).parents("tr:first").find(".customValidationClass").length === 0) {
jQuery(this).parents("td.ms-formbody").addClass("customValidationClass");
}
});
}, 1000);
and this to your custom css:
.customValidationClass{
box-shadow: 0 0 8px red;
}
Let me know how it works out.
Alexander
-
This reply was modified 4 years, 11 months ago by Alexander Bautz. Reason: Fixed an error in the code snippet