Skip to main content
2 of 2
added 34 characters in body
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

Get List Item ID from NewForm.aspx

SharePoint 2010 Enterprise Version

I have a Custom List and i have created a copy of NewForm.aspx and saved it as CustomNewForm.aspx. When I save the item i want to get the saved items ID and redirect the user to EditForm.aspx.

I used this article and I was able to redirect to EditForm but i'm not sure about the method used to get the Saved Item ID. http://spjsblog.com/2011/04/23/redirect-from-newform-to-dispform-or-editform/

I also tried SPServices library but its not working or the value is returned as 0. http://spservices.codeplex.com/wikipage?title=%24%28%29.SPServices.SPRedirectWithID&referringTitle=Home

Kannan Karmegam
  • 1.2k
  • 5
  • 30
  • 53