0
edits
Changes
no edit summary
If you want to have one or more [[Custom Field Type: Select Many – Check Boxes|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.
<pre>
function DefaultChecked()
{
var frm=document.form1;
if (frm.opportunityid.value==0)
{
frm.cf_568279[2].checked = true;
frm.cf_568279[4].checked = true;
}
}
DefaultChecked()
</pre>
'''Note''':
*At Level 2 or 3 use ''document.frmevent'' instead of ''document.form1'' and ''eventid'' instead of ''opportunityid''
[[Category:JavaScript]]