title: One modal bootstrap for both Add and Edit - Upsert
body: <p>I have 2 links (Add and Edit Customer Form) which trigger one same bootstrap modal. My question is how does that one same bootstrap modal detect it is from Add link or Edit link?</p>
  <p>My current code is</p>
  <pre><code>    &lt;a href=&quot;&quot; class=&quot;btn btn-default btn-rounded mb-4&quot; data-toggle=&quot;modal&quot; data-target=&quot;#modalCustomerForm&quot;&gt;
          Add New Customer
      &lt;/a&gt;
  
  $('#modalCustomerForm').on('shown.bs.modal', function () {
  
      $(this).find('form')[0].reset();
  
  })
  </code></pre>