crmForm.all.var_remark.Disabled = false;
if ((crmForm.all.var_businesstype.SelectedText=='other')&&(crmForm.all.var_buyingcategory.SelectedText=='other'))
{
crmForm.all.var_remark.Disabled = true;
}
else
{
crmForm.all.var_remark.Disabled = false;
}
var accountID = crmForm.ObjectId;
crmForm.all.primarycontactid.lookupbrowse = 1;
crmForm.all.primarycontactid.additionalparams = “fetchXml=<fetch mapping=’logical’> <entity name=’contact’> <all-attributes/><filter type=’and’><condition attribute=’parentcustomerid’ operator=’eq’ value=’” + accountID + “‘/><condition attribute=’statecode’ operator=’eq’ value=’0′/></filter></entity></fetch>”;
crmForm.all.primarycontactid.additionalparams += “&selObjects=2&findValue=0″;
if ((crmForm.all.var_businesstype.SelectedText=='other')&&(crmForm.all.var_buyingcategory.SelectedText=='other'))
{
crmForm.all.var_remark.Disabled = true;
}
else
{
crmForm.all.var_remark.Disabled = false;
}
var accountID = crmForm.ObjectId;
crmForm.all.primarycontactid.lookupbrowse = 1;
crmForm.all.primarycontactid.additionalparams = “fetchXml=<fetch mapping=’logical’> <entity name=’contact’> <all-attributes/><filter type=’and’><condition attribute=’parentcustomerid’ operator=’eq’ value=’” + accountID + “‘/><condition attribute=’statecode’ operator=’eq’ value=’0′/></filter></entity></fetch>”;
crmForm.all.primarycontactid.additionalparams += “&selObjects=2&findValue=0″;