diff --git a/frappe/public/js/frappe/form/layout.js b/frappe/public/js/frappe/form/layout.js index a7b139d13f..6caa979497 100644 --- a/frappe/public/js/frappe/form/layout.js +++ b/frappe/public/js/frappe/form/layout.js @@ -116,8 +116,9 @@ frappe.ui.form.Layout = class Layout { // wrap in a block if `html` does not contain html tags $html = $("
").text(html); } else { - $html = $(html); - $html.addClass("form-message border-bottom"); + // Wrap in a block just in case the string does not begin with a tag + // as Jquery assumes it to be a CSS selector and breaks. + $html = $("