SPRedirectWithID not redirecting in IE10

Apr 17, 2013 at 5:25 PM
I have the following on a custom new form:
$().SPServices.SPRedirectWithID({   
      redirectUrl: "EditForm.aspx",
      qsParamName: "ID"
});
When I go to the custom new form in the latest Chrome, it will redirect me to the appropriate Edit form (using Content Types). However, when using IE10, I am returned back to the AllItems page. I have tried debugging the page, but there are no javascript errors being thrown (which I suppose is obvious since it works fine in Chrome).

Any ideas?
Apr 17, 2013 at 7:47 PM
My coworker and I actually figured it out. IE, for whatever reason, was not keeping the updated action on the form. We could see the action change while debugging, but when the Save button was clicked and the form submitted, the form action was back to/still the original action. So, our solution was to add a PreSaveAction function and include the SPRedirectWithID call inside. Here is the code:
<script type="text/javascript">

function PreSaveAction() { 
    $().SPServices.SPRedirectWithID({   
        redirectUrl: "EditForm.aspx",
        qsParamName: "ID"
    });
   return true;
}

$(document).ready(function() {  
    $().SPServices.SPRedirectWithID({   
        redirectUrl: "EditForm.aspx",
        qsParamName: "ID"
    });
});
Coordinator
Apr 18, 2013 at 4:21 AM
What version of SharePoint are you using? I haven't tested much in IE10, so it could be that.

M.
Apr 18, 2013 at 11:10 AM
We are using SharePoint 2010.
Mar 2, 2014 at 6:00 PM
I also had to do this to get it working with IE8 in SP 2010.
May 8, 2014 at 8:19 PM
Thanks Scott!

Had the same problem here, and PreSaveAction works good for me!

(Internet Explorer 10 and SharePoint 2010)