Hello,
I would like to adjust the height of the rows in my table depending of the content of a multi line field. The idea is to not have to scroll down in the cell to read all the text in this field.
I tried to use the below Javascript found on this forum with assigning the CSS class autoadjust to my field but it does not work:
$(document).ready(function () {
$('.autoadjust textarea').each(function () {
h(this);
}).on('keydown blur change',function () {
h(this);
});
function h(e) {
$(e).css({'height':'auto','overflow-y':'hidden'}).height(e.scrollHeight);
}
});
Data in the table are populated from a lookup view and should be read only for this form.
Is there a special way to target the field as it is in a table?
Thanks in advance for any help !
Veronique