title: Sharepoint List redirect with new id
body: <p>I have a list within Sharepoint, using a custom new form I have added a custom list form control ("New item form" for the list) and changed the SaveButton to a standard input HTML button, and added an 'onclick' event that is as follows:</p>
  
  <pre><code>onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={NewFormWizard2.aspx?id=}')}"
  </code></pre>
  
  <p>This works as in saves the data and redirects to the NewFormWizard2.aspx?id= page.</p>
  
  <p>How do I get the ID of the created item to be passed to the redirected page?</p>
  
  <p>Thus once the form is completed it would redirect to NewFormWizard2.aspx?id=23 </p>