验证表达式列 [英] Validation expression column

查看:50
本文介绍了验证表达式列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

如何在SharePoint 2013中验证列表的单行文本列类型以输入字母,特殊字符,数字和该字段的间距?

当前,按以下方式使用,但只允许使用字母.

function isLetter(val){ 
  var re =/^ [a-zA-Z] + $/;

function isLetter(val) { 
 var re = /^[a-zA-Z]+$/;

谢谢.

推荐答案

你好Ameenah,

Hi Ameenah,

在单行文本列中键入文本(不包括字母,特殊字符,数字和空格)时,是否要显示验证文本?

Whether you want to display the validation text when you type the text in the Single line of text column not including alphabets, special character, number and spacing?

在这种情况下,请尝试将[a-zA-Z]替换为[a-zA-z0-9 @#%].

If that’s the case, try to replace [a-zA-Z] to [a-zA-z0-9@#% ].

"0-9"代表数字,"@#%"代表特殊字符的一部分,"代表空格.

"0-9" represents numbers, "@#%" represents parts of special characters, " " represents the spacing.

最诚挚的问候,

Grace Wang

Grace Wang


这篇关于验证表达式列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆