This works for any input in CF8:

<script>
        $(document).ready(function(){
                $("input").each(function(){
                        var inptname = $(this).attr("name");
                        $("input[name="+inptname+"_CFFORMREQUIRED]").remove();
                });
        });
</script>

TEST CASE (TRY IT WITH SCRIPT AND WITHOUT AND WATCH WHAT HAPPENS)
<cfform name="test">
<cfinput type="text" required="yes" name="testvar" validateat="onserver">
<cfinput type="checkbox" required="yes" validateat="onserver" name="testagain">
</cfform>


Drop the script in a custom tag and call it onrequest and you're good to go! 
There is a hidden field needed to validate the field. Remove that hidden input 
with some JQuery and no more validation! 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327537
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to