Hi Caractus
It isn't a supported solution I don't think (however, this is following the same format as I was using in CRM 4 and it has carried through the versions without any issues.)
However, you can make it stay the size it is supposed to be and scroll when not activated by the below.
Our field was called caltech_comments.
OnLoad
var fn1 = "caltech_comments";
var r1 = document.getElementById(fn1).parentNode.parentNode.rowSpan * 24;
var r2 = r1 + "px";
document.getElementById(fn1).style.maxHeight = r2;
document.getElementById(fn1).style.overflow = "auto";
OnChange; pass the name of the field as a string through
function Commentslock(fn1)
{
var r1 = document.getElementById(fn1).parentNode.parentNode.rowSpan * 24;
var r2 = r1 + "px";
document.getElementById(fn1).style.maxHeight = r2;
document.getElementById(fn1).style.overflow = "auto";
var fn2 = fn1 + "_i";
if (typeof document.getElementById(fn2) != "undefined") {document.getElementById(fn2).parentNode.style.overflow = "hidden";}
}
The one downside I've noticed is that there will be 2 vertical scrollbars in the multiline field until it has been changed. This doesn't affect us as most of our multiline fields are read only and added to via input from a single line text field. The
second scrollbar is not visible unless you scroll horizontally however.