//--------------------------------------------------------------------------------------------
setlookupValue = function( idValue, textValue, entityName ) {
//---------------------------------------------------------------------------------------------
var lookupItem = new Object();
var lookupData = new Array();
lookupItem.id = idValue;
lookupItem.name = textValue;
lookupItem.typename = entityName;
lookupData[0] = lookupItem;
return( lookupData );
};
It can then be called from within the form (replace the bits in square brackets[ ]):
var f = crmForm.all;
f.[fieldSchemaName]
No comments:
Post a Comment