title: Remove required validation using asp.net core
body: <p>I have a client that requires two buttons on the form. One that saves the progress of an uncompleted form. So this form will still need to validate the fields but will just ignore the required validation. The other button will need to run the complete validation included required fields.</p>
  
  <p>I am using the stock standard asp.net core project which I believe uses jquery-validation-unobtrusive and is based on the model for the view.</p>
  
  <p>What I am trying to do is when the "Save Progress" button is clicked to remove all the required validation and submit the form. However none of the code that I have found on stack overflow or the internet works for my scenario.</p>
  
  <p>I have tried:</p>
  
  <pre><code>&lt;div class="form-group"&gt;
              &lt;input id="Progress" type="submit" value="Save Progress" onclick="foo()" class="btn btn-default" /&gt;
          &lt;/div&gt;
  
   function foo() {
  
          $('#FamilyName').rules("remove", "required");
  
  
          return true
      }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>     function foo() {
          var settings = $('#Registration').validate().settings;
          for (var i in settings.rules) {
              delete settings.rules[i].required;
          }
   }
  </code></pre>
  
  <p>both of the above two attempts successfully find and remove rules but when the form is submitted validation still fails for the field in question.</p>
  
  <p>I am stumped and not sure how to proceed.  </p>