将整数字段与SharePoint中的可接受值列表进行匹配 [英] Matching an integer field to a list of acceptable values in SharePoint
问题描述
此InfoPath表单包含一个"整数"字段,我希望根据ID ID列表对其进行验证,这样,如果有人输入"垃圾"值(如00000或12345),则表单不会接受。当字段 使用
手动输入时,有没有办法做到这一点?任何填写表格的用户都应该知道自己的身份证号码,并且我担心下拉字段可能最终会不方便。
This InfoPath form has a Whole Number field that I want to validate against a SharePoint list of ID numbers, so that if someone enters a 'junk' value like 00000 or 12345, the form won't accept it. Is there a way to do that when the field uses manual input? Any user who fills out the form ought to know their own ID number, and I'm concerned that a drop-down field might end up being inconveniently long.
推荐答案
您好Daniel,
Hi Daniel,
您可以使用InfoPath将规则添加到特定输入框。
You can add rules to a particular input box with InfoPath.
1。使用InfoPath打开列表表单,选择已归档的数字。
1. Open your list form with InfoPath, select the Number filed.
2。选择"添加规则"在功能区的"属性"选项卡中。
2. Select "Add Rule" in PROPERTIES tab on the ribbon.
3。选择此字段的条件,然后单击"显示验证错误";在"操作"菜单中。在这种情况下,我选择了"If Is Equal To ..."。
3. Select a condition for this field and click "Show Validation Error" in the Actions menu. In this scenario, I selected "If Is Equal To...".
4。在输入框中键入一个数字,例如12345,然后单击"确定"。
4. Type a number in the input box, e.g. 12345, then click OK.
5。修改规则下的条件和屏幕提示。
5. Modify Conditions and ScreenTip under Rules.
6。保存并发布表单。当用户在此字段中键入无效数字时,表单将返回一条消息。
6. Save and publish the form. The form will return a message when user types an invalid number in this field.
以下是您的参考。
添加验证规则。
祝你好运,
Chelsea Wu
Chelsea Wu
这篇关于将整数字段与SharePoint中的可接受值列表进行匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!