title: Extra Buttons on SharePoint 2013 NewForm.aspx
body: <p>I have a site, when the user completes viewing items on the site,  they click a complete button (that was hidden until they completed the required tasks) that pops up a NewForm for the attendance list. Once the user adds their name and clicks save, the NewForm should close.  I created a NewForm (NewForm_CloseAfter.aspx) and pointed the site to open the NewForm_CloseAfter.aspx (no problems so far).  </p>
  
  <p>See code below.  I commented out the SharePoint button and added the html input button.</p>
  
  <p>The problem:  My html input button at the bottom of the form works fine.  However, looks like the default save/cancel button is at the top with the default behavior of submitting the information and showing the list (unwanted behavior)</p>
  
  <p>The Question: How can I remove the default buttons at the top of my form?</p>
  
  <p>Thanks</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;tr&gt;
     &lt;td class="ms-toolbar" nowrap="nowrap"&gt;
      &lt;table&gt;
       &lt;tr&gt;
        &lt;td width="99%" class="ms-toolbar" nowrap="nowrap"&gt;&lt;IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/&gt;&lt;/td&gt;
        &lt;td class="ms-toolbar" nowrap="nowrap"&gt;
         &lt;!--&lt;SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2"/&gt;--&gt;
         &lt;input name="Submit1" type="submit" value="Save" id="savebutton2" style="width:75px" onclick="javascript: {ddwrt:GenFireServerEvent('__commit')}; window.alert('Item updated.') ; window.close();"  /&gt;
        &lt;/td&gt;
        &lt;td class="ms-separator"&gt;&amp;#160;&lt;/td&gt;
        &lt;td class="ms-toolbar" nowrap="nowrap" align="right"&gt;
         &lt;SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton2"/&gt;
        &lt;/td&gt;
       &lt;/tr&gt;
      &lt;/table&gt;
     &lt;/td&gt;
    &lt;/tr&gt;</code></pre>
  </div>
  </div>
  </p>