I have this code working on New and edit but I need something to work in the display I have tried a few things and variations and no luck here is the code I am using in edit.
function ShowNote(){
var sVal = $(“#dffs_Account_x0020_Name”).find(“option:selected”).val(), res;
var res = spjs_getItemByID({“listName”:”Accounts”,”listBaseUrl”:”/Intranet/crm”,”id”:sVal,”viewFields”:[“Note”]});
$(“span.accountnotes”).html(res.Note);
var res3 = spjs_getItemByID({“listName”:”Accounts”,”listBaseUrl”:”/Intranet/crm”,”id”:sVal,”viewFields”:[“Service_x0020_Type_x0020_Agreeme”]});
$(“span.servagree”).html(res3.Service_x0020_Type_x0020_Agreeme);
}