Skip to main content

Development Test Form

Demo - Test Form 2

Admin Only Section

Form Status

Section

Section

Date Calculations

Checkboxes
Reset Form
<!-- Version 1 -->
<script type="text/javascript">
jQuery(document).ready(function($){
  $(document).on('change', 'input[name="item_meta[1644]"]', function(){
    //get the checked radio value for field 1644
    var val1 = $("input[name='item_meta[1644]']:checked").val();
    console.log(val1);
    //check if the radio value is Pending
    if (val1 == 'Pending') {
      jQuery(document).ajaxComplete(function($){
        setTimeout(function() {
          jQuery('select[name="item_meta[1764]"]').prop("disabled",true);
      }, 300);
    });
    } else {
      jQuery(document).ajaxComplete(function($){
        setTimeout(function() {
          jQuery('select[name="item_meta[1764]"]').prop("disabled",false);
        }, 300);
      });
    }
  });
});
</script>
<!-- Version 2 -->
<script type="text/javascript">
jQuery(document).ready(function($){
  $(document).on('change', 'input[name="item_meta[1644]"]', function(){
    //get the checked radio value for field 1644
    var val1 = $("input[name='item_meta[1644]']:checked").val();
    console.log(val1);
    //check if the radio value is Pending
    if (val1 == 'Pending') {
      jQuery(document).ajaxComplete(function($){
        jQuery('select[name="item_meta[1764]"]').prop("disabled",true);
    });
    } else {
      jQuery(document).ajaxComplete(function($){
        jQuery('select[name="item_meta[1764]"]').prop("disabled",false);
      });
    }
  });
});
</script>