验证InfoPath表单的最佳方法
-
10-12-2019 - |
题
我有这个InfoPath表单,其中8个字段名为:
Field1
Field2
Field3
Field4
etc.
.
我应该如何通过在这些字段中无法在这些字段上具有重复值来验证表单。
我不能使用代码后面,因为我无法访问Central Admin,加上我的代码后面的沙箱解决方案太多了,因为我的样式太多了,在发布时,使用它在发布时保持随机错误。所以我正在寻找一个没有代码的解决方案。我正在使用SharePoint Server 2010。
感谢
解决方案 2
So I end up doing a full compare of all the possible combinations:
8 choose 2 = 28.
Thats a lot of rules. There is another limitation, one item cannot have more than 6 rules (or at least i thought so), looks like this limitation is only on the designer to overcome this limitation do the folloing:
In the Rule condition select expression and you can insert as many comparisiona as you want like:
. = ../my:Field2 or . = ../my:Field3 or . = ../my:Field4 ...etc
其他提示
If you're wanting to just compare values to make sure there are no duplicates among them, you could create a validation rule on each of the fields that compares the values of each of the affected fields every time the value changes, and throws a validation error if duplicates are found.