Monday, May 18, 2009

Reading field values from a lookup

Here is how the value of a lookup field can be retrieved :


crmForm.all.lookupfield.DataValue[0].name
//gives us the name of the lookup field's selected record.

crmForm.all.lookupfield.DataValue[0].id
//gives us the GUID of the lookup field's selected record.

No comments: