Infopath:具有多选列表框的规则不会触发 [英] Infopath: Rules with Multiple Selection List Box do not trigger

查看:192
本文介绍了Infopath:具有多选列表框的规则不会触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过选择一些多选列表框来实现表单的多个规则。我通过单击SharePoint中的自定义表单来自定义现有SharePoint列表的表单。首先,列表中的选择字段(多选)在InfoPath中奇怪地绑定:



我不能更改变量的名称价值,房地产类别不应该是必填字段。 (*)



在一个视图中,我有一个业务单位购买框,它是一个多选框(选择),并且有一个下一个按钮。下一个按钮应该只在选择时才可用。



因此,我尝试了下一个按钮的以下规则:

 规则类型操作:

IF(业务单位)的值不为空 - >切换到下一个视图

这可以正常工作,但现在我想禁用下一个按钮,文本框被选中,因为它使得更清晰的选择有可能继续下去。所以我试过这个:

 规则类型格式:

IF值为空 - >禁用这个控制

当多个文本框没有选择任何项目时,这会禁用该按钮。选择一个或多个后,没有任何反应。有没有什么理由不起作用?



通常,当进行选择时,业务单位采购字段值应包含一个或多个字符串,并且因此不应再空白。

解决方案

多选列表框几乎总是包含一个空白元素条目,除非它已被手动删除因此,条件值为空白几乎总是成立的。

p>

要解决此问题,请使用条件构建器的字段选择对话框中的下拉列表将条件设置为:

 所有值的出现都是空白 - >禁用此控件

如果您这样做,则应在选择一个或多个项目时启用该控件。

Im trying to implement several rules for a form, based on a selection of some multiple selection list boxes. Im customizing a form for a existing SharePoint list by clicking on "Customize Form" in SharePoint. First of all, the choice fields on the list (multiple selection) are oddly binded in InfoPath:

I cant change the variable's name "Value" and Real Estate Categories should not be a required field. (*)

On one view I have a "Business Unit Purchase" box that is a multiple selection box (choice) and there is a next button. The next button should only be availiable when a selection is made.

So I tried to the following rules for the Next Button:

Rule Type Action:

IF Value (of Business Unit Pruchase) is not blank -> Switch to next view

This works properly, but now i wanted to disable the next button when nothing is the text box was selected, because it makes it more clear to have a selection beofre ist possible to go on. So I tried this:

Rule Type Formatting:

IF Value is blank -> disable this control

This disables the button as wanted when the multiple text box has not any items selected, but after selecting one or more, nothing happens. Is there any reason why this does not work?

Normally when a selection is made, the field "value" of "Business Unit Purchase" should contain one or more strings and therefor should not be blank anymore.

解决方案

A multiselect list box almost always contains one blank element entry unless it has been manually removed (e.g. via code).

Because of this, the condition Value is blank will almost always be true.

To remedy this, use the dropdown in the Condition builder's field selection dialog to set up your condition as:

All occurrences of Value are blank -> Disable this control

If you do this, the control should be enabled when one or more items are selected.

这篇关于Infopath:具有多选列表框的规则不会触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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