Quantcast
Channel: Super Feed from MSCRM Technical Insight by Jonathan Nachman
Viewing all articles
Browse latest Browse all 130

CRM4: Getting Details From A CRM Form Lookup Field

$
0
0

Getting details from a CRM Form Lookup.

Example: Order Form - Customer Field OnChange event

if(crmForm.all.customerid.DataValue != null)
{
var parentCustomerID = document.getElementById( "customerid" );
var lookupItems = parentCustomerID.items[0].values;
alert(lookupItems[0].value); // First column value of Lookup
alert(lookupItems[1].value); // Second column value of Lookup
alert(lookupItems[2].value); // Third column value of Lookup
alert(lookupItems[3].value); // Fourth column value of Lookup
alert(lookupItems[4].value); // Fifht column value of Lookup
alert(lookupItems[5].value); // Sixth column value of Lookup
}


Viewing all articles
Browse latest Browse all 130

Latest Images

Trending Articles



Latest Images