tips & tricks


Calendario
aprile 2025
lmmgvsd
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

Come Impostare Obbligatorietà dei campi.

Questa funzione ci permette di settare dinamicamente nel crm se un campo lo vogliamo "business required" or "optional".

Create the function as below for crm3.0;
--------------------------------------------------

function crmForm.SetRequiredLevel(field, level)
{
field.req = level;
var fieldLabel = document.getElementById(field.id + "_c");

if (fieldLabel != null)
{
switch (level)
{
case 0: //normal
fieldLabel.className = "n";
break;
case 1: //recommended
fieldLabel.className = "rec";
break;
case 2: //required
fieldLabel.className = "req";
break;
}
}
}

--------------------------------------------------

Then call it using your field reference and the requirement level as needed.

--------------------------------------------------

crmForm.SetRequiredLevel(crmForm.all.fieldname, 2);

Categoria: CRM 3.0
venerdì, 04 lug 2008 Ore. 12.47
Archivio Posts
Anno 2020

Anno 2018

Anno 2015

Anno 2013

Anno 2011

Anno 2010

Anno 2009

Anno 2008
Statistiche
  • Views Home Page: 16.491
  • Views Posts: 60.441
  • Views Gallerie: 2.837
  • n° Posts: 117
  • n° Commenti: 1
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003