Changes

Jump to: navigation, search

Select Check Boxes by Default

116 bytes added, 15:52, 15 April 2010
no edit summary
The following will check the 2nd and 4th options for [[Custom Field]] number 568279.
<pre>
//This is to add the newonload function to the onload function so it runs when the page is loaded
var oldonload = window.onload;
if (typeof window.onload != 'function') { window.onload = newonload;}
else {
window.onload = function() {
}
//This is the relevant function:function newonload(){
var frm=document.form1;
if(frm){
if (frm.opportunityid.value==0) {
frm.cf_568279[2].checked = true;
frm.cf_568279[4].checked = true;
}
}
}
0
edits

Navigation menu