Select Check Boxes by Default

Revision as of 10:11, 23 September 2009 by Cameron (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Revision as of 10:11, 23 September 2009 by Cameron (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

If you want to have one or more Check Boxes selected by default you need to create a Browser Script to select the boxes.


Example: The following will check the 2nd and 4th options for Custom Field number 568279.

function DefaultChecked()
{
var frm=document.form1;
if (frm.opportunityid.value==0)
  {
  frm.cf_568279[2].checked = true;
  frm.cf_568279[4].checked = true;
   }
}
DefaultChecked()


Note:

  • At Level 2 or 3 use document.frmevent instead of document.form1 and eventid instead of opportunityid