This functionality is only available for certain module packages.

You are here: Reference > Form-UI > Loops and conditions > switch

switch

The element <switch> with at least one sub-element <case> and one sub-element <default> formulates one or more conditions for displaying either input fields or labels in a column of the pureTable.

The conditions are expressed as formulas. The case expressions have to be unique! A default expression must always be given, since one value always has to be supplied.

Attribute name Usage Attribute values Default value Description
receiver required Formula to the object
Allowed sub-elements Quantity
case 1..n
default 1

A pureTable displays an input field or a label depending on the parameter value:

In the table, all the existing values of the parameter Location are displayed as labels (1). If there is no value present for the parameter, a value can be entered with an input field (2).