Problems with RedirectWithId function in sharepoint 2013

Jan 17, 2014 at 1:06 PM
I has problem when using RedirectWithId function in my NewForm.aspx.
My code in NewForm.aspx:
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">

<script type="text/javascript" src="/sites/sitename/SiteAssets/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/sites/sitename/SiteAssets/jquery.SPServices-2013.02a.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
                redirectUrl: "EditForm.aspx",
                qsParamName: "ID"
First of all, why do we use form[name='aspnetForm'] selector in this function? Main form has id equals to "aspnetForm", but not the name. On the line 3911 we use "#aspnetForm" as selector.
Ok, I've changed it myself, all code goes correctly step by step in debugger, set action to new url in code. But I don't see new action attached to form in debugger and after post from data it redirects me to AllItems.aspx list view (original source url).
I reproduced this code and behavior on the simplest list with only one Title field

Help me please, what I'm doing wrong?
Jan 17, 2014 at 2:05 PM
I'll admit that I haven't tested this function in SharePoint 2013. When 2010 came along with its incessant dialogs, the function was far less useful than in 2007. I'll copy this to an issue in the Issue Tracker as a bug and get to it eventually. If you figure out how to make it work, please post back with the details.

Jan 17, 2014 at 2:06 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.