将 SharePoint 列表表单自定义为部分/选项卡/页面
我有一个 SharePoint 解决方案,它使用包含大约 20 个不同数据的列表。 我希望能够将它们分成部分/页面/选项卡,以便填充和编辑这些内容的用户体验不会那么差。
我知道如何使用 SPD(SharePoint Designer)来自定义列表表单,并且想知道是否有人知道实现此目的的技术。
我已经考虑过使用 MultiView 控件,但这似乎会搞砸表单内的渲染。
欢迎提出想法。
I have a SharePoint solution which uses a list with around 20 different pieces of data. I would like to be able to break these up into sections/pages/tabs so that the user experience in populating and editing these is not so poor.
I know how to use SPD (SharePoint Designer) to customize list forms and was wondering if anyone knew of a technique for achieving this.
I have looked at using a MultiView control but this appears to screw up the rendering within the form.
Ideas welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
您可以创建一些Javascript来隐藏字段,直到必要为止,但是要做到正确将是一个艰难的过程。 为数据创建自定义 .NET 表单并使用对象模型来存储列表数据可能会更容易。
You can create some Javascript to hide fields until necessary, but it is going to be a hard slog to get it right. It could be easier to create a custom .NET form for the data and use the object model to store the list data.
尝试使用表单设计器工具:http://spform.com。 它允许您使用基于 jquery-ui 选项卡的选项卡创建丰富的动态表单。
Try to use Forms Designer tool: http://spform.com. It allows you to create rich dynamic forms with tabs based on jquery-ui tabs.
我可能会修改当前表单并添加 div 标签,通过 javascript 根据某处的点击来显示或隐藏。 这将完全避免额外的 .NET 代码,因此可能会避免您看到的多视图问题。
I would probably modify the current form and add div tags that show or hide, through javascript, based on a click somewhere. This would avoid additional .NET code altogether, and therefore maybe the multiview issue you saw.
jQuery UI 有一个很好的 选项卡控件,您可以利用它与一些验证相结合以确保表单如果用户未填写所有页面,则不会提交。 在附加 jQuery 之前,您需要将现有表单拆分为单独的
div
包装的表。jQuery UI has a nice tab control that you could leverage combined with some validation to make sure the form isn't submitted if the user hasn't filled out all pages. Before you attach the jQuery, you'll want to split the existing form into separate
div
-wrapped tables.您可以尝试使用 PowerForms。 它支持选项卡和自由控制定位(使用 silverlight)。
You could try using PowerForms. It supports tabs and free control positioning (uses silverlight).
我遇到 这种 javascript 分割方式表单到选项卡中。 可能对你有用?
点击图片(因为我还不允许发布图片......)
I ran into this javascript way to split forms into tabs. Might be of use to you?
Click for image (since I'm not allowed to post images yet...)
信息路径表单支持此功能,但您必须将它们部署在表单库而不是列表中。 您可以根据表单中的其他字段过滤重复部分,并仅显示基于您之前选择的字段。 这是最简单的方法,不确定您是否有 InfoPath 和服务器/许可设置以使用 infopath 表单?
Info path forms support this but you have to deploy them in a Form Library instead of a list. You can filter a repeating section based on other fields within the form and only display the fields based on your previous selection. It is the easiest way, not sure if you have InfoPath and the server/licensing set up to use infopath forms?