Hi,
you can use string concatenation, it is the supported way, similar to this code:
var description = Xrm.Page.getAttribute("description").getValue();
description += "append here new text";
Xrm.Page.getAttribute("description").setValue(description);
or you can create a function like this:
function AppendText(field, text) {
var fieldValue = Xrm.Page.getAttribute(field).getValue();
if (fieldValue != null) {
fieldValue += text;
} else {
fieldValue = text;
}
Xrm.Page.getAttribute(field).setValue(fieldValue);
}
My blog: www.crmanswers.net