列表列的列验证 [英] Column Validation at a List column

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

问题描述

大家好

我有一个列表,其中有一个名为"ASSET TAG"的文本列.我想有一个公式来验证并验证:

I have a list with a text column called "ASSET TAG". I would like to have a formula to validate and to:

1)仅写新号码,如果该号码存在则显示验证消息

1) write NEW numbers only, if the number exists then to show the validation message

2)如果用户写了N/A,则允许它.

2) if the user write N/A then to permit it.

您能提供一些例子吗?

我尝试过

= [资产标签] = [资产标签]-但这不允许任何值

=[Asset tag]=[asset tag] - but that doesn't allow any value

提前谢谢

推荐答案

科古利斯,

我们可以使用InfoPath表单来实现此要求.添加复选框以检查用户是否要输入N/A.当用户选中"N/A"时,"ASSET TAG"文本框字段消失 并且用户不需要在"ASSET TAG"文本框字段中输入值.如果用户未选中"N/A",则必须在"ASSET TAG"文本框中输入一个值.

We could use an InfoPath form to achieve this requirement. Add a check box to check whether user wants to enter N/A. When the user checks the "N/A", the "ASSET TAG" text box field disappears and the user does not need to enter a value in the "ASSET TAG" text box field. If the user does not check the "N/A", he must enter a value in the "ASSET TAG" text box field.

步骤如下:

1.创建一个名为"ASSET TAG"的列,并强制使用唯一值. 强制唯一值"功能可防止用户复制数据.


2.使用InfoPath自定义表单.

3.添加一个名为"NA"的复选框.

4.将规则添加到资产标签"字段.

(1)添加格式设置规则.如果"NA"值为"true"(选中不适用"),则隐藏"ASSET TAG"文本框字段.


(2)添加验证规则.如果"NA"值为"false"(未选中"N/A"),并且"ASSET TAG"文本框字段为空白,则会显示错误.


最好的问候,

Linda(张)


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

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