【问题标题】:SharePoint 2010 Custom List Form Tool TipSharePoint 2010 自定义列表表单工具提示
【发布时间】:2018-10-24 01:24:52
【问题描述】:

SharePoint 2010 自定义列表表单工具提示字段帮助

我在 SharePoint 中有一个自定义表单,我需要在鼠标悬停时添加格式化字段帮助,有什么好的方法可以做到这一点?

标准工具提示很快就会消失。

哦,顺便说一下,我们不使用 InfoPath,而是使用 SharePoint 设计器。我们曾经使用 Overlib,但无法让它与 SharePoint 代码一起使用。

感谢您的建议

【问题讨论】:

    标签: sharepoint sharepoint-2010


    【解决方案1】:

    我们可以使用 jQuery UI 中的 jQuery Tooltip 来实现它。以下代码供您参考:

    <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
    <script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
    <script src="//code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
    <script type="text/javascript">
    $(function(){
        $("input[title='Title']").tooltip();
    })
    </script>
    

    将代码添加到自定义表单页面中的内容编辑器 Web 部件。此代码适用于 Title 字段,您可以添加类似的代码使其适用于其他字段。

    【讨论】:

    • 将代码放入自定义表单页面中的内容编辑器 Web 部件中,或使用 SharePoint 设计器将代码放入下面的“PlaceHolderMain”控件中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-14
    • 2013-07-27
    相关资源
    最近更新 更多