title: Resuming an interrupted form submit without losing the "submit" button value
body: <p>I have a simple function that intercepts a form submit event, displays a SweetAlert2 confirmation dialogue, and if the user confirms the form is submitted.</p>
  
  <p>The function is something like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
      $('form.require-confirmation').submit(event =&gt; window.swalConfirm(event));
  });
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>window.swalConfirm = function(e)
  {
      e.preventDefault();
  
      Swal.fire().then((result) =&gt; {
          if (result.value) {
              e.target.submit();
          }
      })
  };
  </code></pre>
  
  <p>This works as expected… in most cases. When the form has multiple submit buttons – for example:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;button type="submit" name="action" value="add"&gt;Add&lt;/button&gt;
  &lt;button type="submit" name="action" value="remove"&gt;Remove&lt;/button&gt;
  </code></pre>
  
  <p>… the value of "action" is removed from the submitted form. Is there any way around this, like resuming the initial submit or something like that? Or is there no option but making the buttons change the value of a hidden input before submitting the form, for example?</p>