查看页面 (DispForm.aspx) 未与 SharePoint 列表视图正确关联
我自定义了 NewForm、EditForm 和 DispForm,以允许用户创建新的、编辑(具有一定权限)和显示服务请求。
除了我的视图之外,表单工作正常(例如 Createbyme.aspx,它显示我拥有的所有请求)。它不是指向我的自定义 DispForm /[site]/Lists/[list_name]/DispForm_custom.aspx?ID=[request#]
,而是链接到 /[site]/?ID= [请求#]
。
有修复建议吗?
I've customized NewForm, EditForm and DispForm to allow users to create new, edit (with certain permission) and display service requests.
The forms work fine except in my views (e.g. Createbyme.aspx which shows all requests owned by me). Instead of pointing to my custom DispForm /[site]/Lists/[list_name]/DispForm_custom.aspx?ID=[request#]
, it links to /[site]/?ID=[request#]
.
Is there any suggestion for a fix?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

我刚刚在另一篇文章中回答了这个问题...
恢复 NewForm.aspx 文件
总而言之,
打开页面并选择表单控件。打开该控件的属性并选择单选按钮“NEW ITEM FORM”。保存页面后,您可以选择该页面作为列表的支持文件,并且设置将保留。不要首先选择页面作为支持文件,因为设置不会粘住...因此步骤的顺序很重要。
I just answered this question in another post...
Restore NewForm.aspx file
To summarize,
Open the page and select the form control. Oen the propertis for that control and select the radio button "NEW ITEM FORM". After you save the page you can then select the page as a supporting file for the list and the setting will stick. Do not select the page as a supporting file first as the setting will not stick... ergo the order of your steps is important.