Requirement is: Don't allow the end user to submit a record until they Agree with the terms and conditions by selecting "I Agree".
So, we've to disable "Save" button until the "I Agree" check box is checked! Here is the jQuery script to achieve the same. Just place this code in your custom list form or in Content Editor Web Part (Place it in a Text file, upload and specify the script in CEWP).
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" type="text/javascript"></script><script language="javascript"> $(document).ready(function(){ //Disable the "Save" button initially $("input[value$='Save']").attr('disabled', true); //alert('jQuery Works'); //Enable-Disable "Save" button based on "I Agree" checkbox value! $("input[title$='Agree to Delete this site']").click(function(){ if(this.checked) { $("input[value$='Save']").attr('disabled', false); } else { $("input[value$='Save']").attr('disabled', true); } }); }); </script>Code in action: If "I Agree" check box isn't enabled:
After selecting "I Agree" check box: Save button enabled!