Hi!
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() {
$().SPServices.SPRedirectWithID({
redirectUrl: "EditForm.aspx",
qsParamName: "ID"
});
});
</script>
...
```
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?
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() {
$().SPServices.SPRedirectWithID({
redirectUrl: "EditForm.aspx",
qsParamName: "ID"
});
});
</script>
...
```
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?