Select All button for checkbox embedded view

Insert the code below when you want to select all documents in a embedded web view that has the "Allow Selection of Documents" option enabled. Check the boolean value from true to false for a Deselect All button.
JavaScript • Lotus Notes View


var fieldname = document.forms[0].$$SelectDoc;

for(i = 0; i < fieldname.length; i ++){
fieldname[i].checked=true
} 

Images/Screenshots:

Posted by fbrefere001 on Wednesday April 23, 2003