- 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:
Similar Posts
- I can't find defaultpricelevelid lookup field in 'Add field' list account form. (Windows CRM) by Kesh
- Loading lookup field text into another form field (Windows CRM) by Steve
- Lookup field (Windows CRM) by Mark
- Can I retrieve a field from a SQL table during an OnChange event on a lookup field? (Windows CRM) by Bob
- new lookup field (Windows CRM) by Massimiliano Gagliandi

