Sharepoint 2007 在Sharepoint 2007中的列表加载项之后向用户显示自定义页面

Sharepoint 2007 在Sharepoint 2007中的列表加载项之后向用户显示自定义页面,sharepoint-2007,Sharepoint 2007,在我的用户将新列表项添加到我的自定义列表页面后,Sharepoint 2007会将它们重定向到AllItems.aspx。我想让他们转到自定义页面ThankYou.aspx 我的按钮是SharePoint Designer生成的标准按钮 <table> <tr> <td width="99%" class="ms-toolbar" nowrap=""><IMG SRC="/_layouts/images/blank.gif" wi

在我的用户将新列表项添加到我的自定义列表页面后,Sharepoint 2007会将它们重定向到AllItems.aspx。我想让他们转到自定义页面ThankYou.aspx

我的按钮是SharePoint Designer生成的标准按钮

<table>
    <tr>
        <td width="99%" class="ms-toolbar" nowrap=""><IMG SRC="/_layouts/images/blank.gif" width="1" height="18"/></td>
        <td class="ms-toolbar" nowrap="">
            <SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2"/>
        </td>
        <td class="ms-separator"> </td>
        <td class="ms-toolbar" nowrap="" align="right">
            <SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton2"/>
        </td>
    </tr>
</table>

 

我见过一些需要添加150行JavaScript或更改SharePoint底层代码的解决方案,我简直不敢相信这就是解决方案——我认为要么它太简单,以至于没有人写过它,要么我使用了错误的搜索词来查找它。

我只是忽略了一些简单的东西

表单链接上的源参数将为您更改重定向。因此,如果您的自定义表单位于

https://myserver/lists/customadd.aspx
然后,您只需添加源参数,Sharepoint将在提交时重定向:

https://myserver/lists/customadd.aspx?Source=ThankYou.aspx