复制或实现OOTB人员选择器,例如在新的任务表单上可用的OOTB人员选择器,在您输入时会提供建议? [英] Reproduce or implement the OOTB people picker that is available on for example a new task form where it provides suggestions as you type?
问题描述
是否可以重现或实现OOTB人员选择器,例如新的任务表单,在您输入时会提供建议?
Is there a way to reproduce or implement the OOTB people picker that is available on for example a new task form where it provides suggestions as you type?
当您在InfoPath中选择人员选择器字段时,将显示带有地址选择器图标和选中(姓名)图标的字段.如果单击地址/名称选择器图标,则会出现另一个提示,在其中键入名称以查找并添加"到 领域.
When you choose a people picker field in InfoPath the field with the address picker icon and check (name) icon appears. If you click on the address/name picker icon another prompt appears where you type the name to locate and 'Add' to the field.
我正在使用SharePoint 2013.
I am using SharePoint 2013.
推荐答案
据我所知,您希望在您的InfoPath自定义列表表单.
假设InfoPath列表表单已启用浏览器.
您可以尝试为此使用jQuery自动完成插件.
InfoPath列表表单中的人员字段将呈现为html div:
So you could read users from site by REST API
(function(){ var建议= [ {"id":"1","name":"usera" } , {"id":"2","name":"userb" } , {"id":"3","name":"userc"; } , {"id":"4","name":"userd"; } , {"id":"5","name":"usere" } , {"id":"6","name":"userf"; } ]
(function () { var suggestion = [ { "id": "1", "name": "usera" } , { "id": "2", "name": "userb" } , { "id": "3", "name": "userc" } , { "id": "4", "name": "userd" } , { "id": "5", "name": "usere" } , { "id": "6", "name": "userf" } ]
('#MyText').autocomplete({ minLength:1 来源:功能(请求,响应){ var data =
('#MyText').autocomplete({ minLength: 1, source: function (request, response) { var data =
这篇关于复制或实现OOTB人员选择器,例如在新的任务表单上可用的OOTB人员选择器,在您输入时会提供建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!