InfoPath 2013:如何验证文件名长度 [英] InfoPath 2013: How to validate file name length
问题描述
我有一个列表的InfoPath表单,我需要验证附件的文件名长度,以便它不超过128个字符的限制。
I have an InfoPath form for a list and I need to validate the file name length for attachments so that it does not exceed the 128 character limit.
它如果尝试附加不符合系统验证条件的文件,则会显示重复的列表项。
It appears that a duplicate list item is created if an attempt is made to attach a file that does not meet system validation criteria.
是否可以使用规则公式验证文件名长度?
Is it possible to validate the file name length with a rule formula?
感谢您的帮助
推荐答案
嗨DavJaq,
Hi DavJaq,
我们无法直接向InfoPath表单中的附件控件添加规则。
We are not able to directly add a rule to an attachment control in InfoPath form.
作为解决方法,我建议您创建一个新字段在InfoPath表单中,并在此字段上添加验证规则。
As a workaround, I recommend you creating a new field in InfoPath form, and add a validate rule on this field.
在条件部分中,键入如下:
In the Condition section, type as below:
当附件名称的长度超过限制时,新创建的字段将显示屏幕提示。
The new created field will display the screentip when the length of attachment name exceed the limit.
祝你好运,
Grace Wang
Grace Wang
>
这篇关于InfoPath 2013:如何验证文件名长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!