Hi, I'm hoping you can assist with the following issue.
We have a custom tab on the task editor that contains a textAreaField.
oppHistoryTab: {
title: 'History',
items: {
newNotesField: {
type: 'textAreaField',
name: 'oppHistory',
id: 'oppHistory',
label: '',
cls: 'taskEditField',
editable: false,
width: 150,
height: 250
}
}
},
When the task editor is loaded, we call a web API which returns some text which we then input into the TextAreaField, we do this in the beforeTaskEditShow listener:
beforeTaskEditShow({ taskRecord, editor }) {
oSelectedEvent = taskRecord;
var oHistory = fetchOppHistory(oSelectedEvent.opportunityNumber);
oHistory.then(function (data) {
var oText = document.getElementById('oppHistory-input');
if (oText) {
oText.value = data.data.HistoryText;
}
});
}
Sometimes the text that is returned is bigger than the textAreaField, this causes vertical scrolling, how can I get the scroll bar to move to the bottom automatically as in the screenshot below?
Thanks