Tech Support > Microsoft Windows > Windows CRM > Lookup Field Value
Lookup Field Value
Posted by Jaber on August 14th, 2007


Hi Everboby
I got a lookup field and I want to know that which value is selected.
I know it is very basic but I cannot able to figure it out.
Any help??????????
Thanks in advance.
--
Jaber

Posted by Ng on August 17th, 2007


Hi you can try this

var lookupItem = new Array;
lookupItem = crmForm.all.new_productid.DataValue; // lookup field

if(lookupItem[0] != null)
{
//productid GUID
alert(lookupItem[0].id);
//product name
alert( lookupItem[0].name);
}

"Jaber" wrote:

Posted by Jaber on August 20th, 2007


Thanks NG
It is great.
Regards.
--
Jaber


"Ng" wrote: