sharepoint-online - 禁用人员选取器的拼写检查 - InfoPath 表单
问题描述
您能帮我禁用 InfoPath 表单中的人员选择器字段的拼写检查吗?
我通过了几个代码。但是,这对 InfoPath 表单没有帮助。
请指导我完成这个。
解决方案
$('div').blur(function(){
debugger;
setTimeout(function(){
var HtmlPlaceHolder = document.getElementById('WebPartWPQ2');
var InputHtml = HtmlPlaceHolder.getElementsByTagName('input');
for (var i = 0; i < InputHtml.length; i++)
{
InputHtml[i].setAttribute("excludeFromSpellCheck", "true");
}
var HtmlTextArea= HtmlPlaceHolder.getElementsByTagName('textarea');
for (var i = 0; i < HtmlTextArea.length; i++)
{
HtmlTextArea[i].setAttribute("excludeFromSpellCheck", "true");
}
},2000);
});
$('input').blur(function(){
debugger;
setTimeout(function(){
var HtmlPlaceHolder = document.getElementById('WebPartWPQ2');
var InputHtml = HtmlPlaceHolder.getElementsByTagName('input');
for (var i = 0; i < InputHtml.length; i++)
{
InputHtml[i].setAttribute("excludeFromSpellCheck", "true");
}
var HtmlTextArea= HtmlPlaceHolder.getElementsByTagName('textarea');
for (var i = 0; i < HtmlTextArea.length; i++)
{
HtmlTextArea[i].setAttribute("excludeFromSpellCheck", "true");
}
},2000);
});
$('textarea').blur(function(){
debugger;
setTimeout(function(){
var HtmlPlaceHolder = document.getElementById('WebPartWPQ2');
var InputHtml = HtmlPlaceHolder.getElementsByTagName('input');
for (var i = 0; i < InputHtml.length; i++)
{
InputHtml[i].setAttribute("excludeFromSpellCheck", "true");
}
var HtmlTextArea= HtmlPlaceHolder.getElementsByTagName('textarea');
for (var i = 0; i < HtmlTextArea.length; i++)
{
HtmlTextArea[i].setAttribute("excludeFromSpellCheck", "true");
}
},2000);
});
推荐阅读
- android - 如何在底部表中使用 ScrollView?
- javascript - Material-ui V3 在获取数据(或页面加载)后未加载第一个选项卡
- android - 有恶意的人可以使用我的 Google App Signing 上传密钥做什么?
- ios - Xamarin Forms ListView 选择背景在项目背景上绘制
- sql - 如何对具有相同名称的列执行 INNER JOIN
- webpack - Nativescript 6 代码共享项目和懒加载模块
- c++ - static_cast 有什么区别
(i) 和 size_t(i) 在 std::vector 构造函数中? - python-3.x - pyspark:查找有条件的行之间的时间差异
- javascript - 为什么“1 << 32”在Javascript中等于1
- java - Spring 安全性不允许使用简单的匹配器和 permitAll 进行访问