//Veld hiden
crmForm.all.new_datetocontact_c.style.display = 'none';
crmForm.all.new_datetocontact_d.style.display = 'none';
//Veld tonen
crmForm.all.new_datetocontact_c.style.display = 'block';
crmForm.all.new_datetocontact_d.style.display = 'block';
Zoeken in deze blog
woensdag 25 augustus 2010
Hiden van een menu-optie
//Hiden MenuItem Order annuleren
if(document.getElementById("_MIcloseOrder2") != null)
{
document.getElementById("_MIcloseOrder2").style.display="none";
}
if(document.getElementById("_MIcloseOrder2") != null)
{
document.getElementById("_MIcloseOrder2").style.display="none";
}
Button uit de grid verwijderen
//Hiden button "Adres opzoeken..."
if(document.getElementById('_MBLookupAddress') != null)
{
document.getElementById('_MBLookupAddress').style.display="none";
}
if(document.getElementById('_MBLookupAddress') != null)
{
document.getElementById('_MBLookupAddress').style.display="none";
}
Aanpassen omschrijving van een NavBar item
//Aanpassen NavBar item "Bestaande producten"
var NavBarItem = document.all.navExistingProducts;
NavBarItem.getElementsByTagName("nobr")[0].innerHTML = "Producten";
var NavBarItem = document.all.navExistingProducts;
NavBarItem.getElementsByTagName("nobr")[0].innerHTML = "Producten";
E-mail bijhouden in CRM geeft foutmelding
Wanneer het bijhouden van e-mails vanuit outlook problemen geeft, controleer dan in de gebruikersrol of de gebruiker leesrechten heeft op alle drie de entiteiten Accounts, Contacts en Leads. CRM controleert tijdens het bijhouden van een e-mail namelijk in deze drie entiteiten of het e-mailadres al voorkomt in CRM. Bedankt Huub ;-)
Tekstveld converteren naar nummeriek veld
crmForm.all.new_numeriekpc.DataValue = parseInt(crmForm.all.address1_postalcode.value.substr(0,4));
Veld wel/niet tonen o.b.v. picklist-waarde
if(crmForm.all.statuscode.SelectedText != 'Future interested')
{
crmForm.all.new_datetocontact_c.style.visibility = 'hidden';
crmForm.all.new_datetocontact_d.style.visibility = 'hidden';
crmForm.SetFieldReqLevel("new_datetocontact", 0);
crmForm.all.new_datetocontact.DataValue = null;
}
else
{
crmForm.all.new_datetocontact_c.style.visibility = 'visible';
crmForm.all.new_datetocontact_d.style.visibility = 'visible';
crmForm.all.new_datetocontact.SetFocus ();
crmForm.SetFieldReqLevel("new_datetocontact", 1);
}
{
crmForm.all.new_datetocontact_c.style.visibility = 'hidden';
crmForm.all.new_datetocontact_d.style.visibility = 'hidden';
crmForm.SetFieldReqLevel("new_datetocontact", 0);
crmForm.all.new_datetocontact.DataValue = null;
}
else
{
crmForm.all.new_datetocontact_c.style.visibility = 'visible';
crmForm.all.new_datetocontact_d.style.visibility = 'visible';
crmForm.all.new_datetocontact.SetFocus ();
crmForm.SetFieldReqLevel("new_datetocontact", 1);
}
Abonneren op:
Posts (Atom)