This script work correctly, try it.
<cfif isDefined("Form.submit")> <cfloop list="#form.fac#" index="f" delimiters="crlf"><cfoutput>#f#</cfoutput></cfloop> </cfif> <form name="internships" action="" onsubmit="return val()" method="post"> <script> function is_checked() { var formObj = document['internships']['fac']; var count = 0; for (i=0;i<formObj.length; i++) { if(formObj[i].type == 'checkbox') { if(formObj[i].checked) count++; } } if (count < 3) { return false; }else { return true; } } function val(){ if (!is_checked()){ alert('You Must Choose 3 Faculty Supervisors'); return false; }else { return true; } } </script> <tr><td align="right" valign="top"><strong>Faculty Supvisor:</strong> <br /><font style="color: #BD2925; font-size: xx-small;">(Choose 3)</font> </td><td> <br /> <input type="checkbox" name="fac" value="Joseph Ashcroft" /> Joseph Ashcroft<br /> <input type="checkbox" name="fac" value="Paul Lippert" /> Paul Lippert<br /> <input type="checkbox" name="fac" value="Charles Warner" /> Charles Warner<br /> <input type="checkbox" name="fac" value="Marcia Godich" /> Marcia Godich<br /> <input type="checkbox" name="fac" value="Andrea McClanahan" /> Andrea McClanahan<br> <input type="checkbox" name="fac" value="Glenn Geiser-Getz" /> Glenn Geiser-Getz<br /> <input type="checkbox" name="fac" value="Robert McKenzie" /> Robert McKenzie<br /> <input type="checkbox" name="fac" value="Wenji Yan" /> Wenjie Yan<br /> <input type="checkbox" name="fac" value="Patricia Kennedy" /> Patricia Kennedy<br /> <input type="checkbox" name="fac" value="Cem Zeytinoglu" /> Cem Zeytinoglu </td></tr> <input type="submit" value="submit" name="submit" /> </form> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302006 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4