// getLookupID returns the GUID of the Lookup field passed to it, returns null if isn't populated
var sCurrencyID = getLookupID(crmForm.all.transactioncurrencyid.DataValue);
if (sCurrencyID == null)
{
var currencyObject = new Object;
var currencyObjectArray = new Array();
currencyObject.id = ;
currencyObject.name = ;
currencyObject.typename = "transactioncurrency";
currencyObjectArray[0] = currencyObject;
crmForm.all.transactioncurrencyid.DataValue = currencyObjectArray;
crmForm.all.transactioncurrencyid.ForceSubmit = true;
}
|