- Lookup field default value?
- Posted by WiLLerZ on August 29th, 2006
Is it possible to set a default value in a lookup field? Just seems
like a waste of time using a built in lookup field when the same value
is being selected almost all the time.
- Posted by Semih on August 29th, 2006
You can use the callout mechanism. For example, if the value of that field is
empty, you can set that "same value" for the lookup field in precreate
method.
Regards!
Semih
"WiLLerZ" wrote:
- Posted by Bill Altmann on September 18th, 2006
var CRM_FORM_TYPE_CREATE = 1;
var CRM_FORM_TYPE_UPDATE = 2;
switch (crmForm.FormType)
{
case CRM_FORM_TYPE_CREATE:
// set Igendwas to "Unknown"
// straight from the Crm 3.0 SDK
var lookupItem = new Array();
lookupItem[0] = new LookupControlItem
("{0C08B124-8D38-DB11-867F-00042322A5E1}", 10002, "Unknown");
crmForm.all.mt_industryaccountid.DataValue = lookupItem;
etc.
"WiLLerZ" wrote: