Skip to content

Filter Enumeration Values Conditionally

With the conditional fields functionality introduced in IFS Cloud Web, it can conditionally filter values in an Enumeration ( Modeling - Enumeration , Projection Controls - Enumeration ) . The defined set of values in the Enumeration can be filtered depending on the values from other fields. This is also configured by using the page designer.

In order to do that you need to expand the Enumeration type field under its relevant page element. Then expand the optional properties of it. There you can see the property called ‘Enumeration Filter’ which you can use to add filter conditions for the Enumeration.

By clicking the plus icon (+) right in front of the property it can open the dialog which you can use to add a new filter conditions for the Enumeration.

Property Description
Case This is where you can define your condition. This can be either a Boolean true/false or a conditions .
Enabled Enables the filter case. If enabled is set to false, the case is not used in runtime. This used by configurations to disable standard case items without the need to remove them.
Value The subset of enumeration values that should be valid if the condition successfully evaluates.

Once you are done with adding the filter conditions you can confirm the filter by clicking the tick icon on new item dialog. As such you can add as many as filter conditions you want.

The enumeration filter cases are evaluated in order of presence. The values for the first condition that evaluates successfully will be used.

The values are filtered as follows :

If there is no subset activated for that field under a particular scenario, the intersection of the main set and the custom filter case value set will be filtered out as valid values for the Enumeration.

If there is a subset activated for that field under a particular scenario, the intersection of the active subset and the custom filter case value set will be filtered out as valid values for the Enumeration.