Skip to main content

Search

Hide explanatory text for richtext fields

Comments

2 comments

  • Christof Nussbaumer

    Thank you for sharing this solution Tomislav Karafilov !

     

    To additionally hide the leftover linebreak whitespaces you can add these lines.

    var myElements = document.querySelectorAll(".ms-formdescription");
    for (var i = 0; i < myElements.length; i++) {
         myElements[i].style.display = "none";
         myElements[i].nextElementSibling.style.display = "none";
    }

    0
  • Tomislav Karafilov

    Thanx for the hint Christof Nussbaumer!

    Sadly it does not work with an image column, because the links are removed too. But in my app I am satisfied with my result.

    0

Please sign in to leave a comment.