I am using Ninja Forms for an online scholarship application. Occasionally, I need to temporarily disable a checkbox item. Rather than mess with the multi-part form and conditional logic that I already have set up, I just use a jQuery function.

        
<script type="text/javascript">
 jQuery(function ($) {
  // Useful Comment
  $('#ninja_forms_field_number_n').change(function() {
     if ($(this).prop('checked')) {
     alert("The due date has passed for this scholarship."); //checked
     $(this).prop('checked', false);
     }
  })
  });
        
</script>
Advertisements