Dear user,
The solution is a bit tricky but it's an interesting case to discuss here.
One thing that you could use is the option Auto generate minimum items
that you have in the multiple entity definition editor in the Survey Designer; this option works only the first time an entity (or a form containing that) becomes relevant
, so you will have to have some condition that will be triggered when all the values of your multiple selection dropdown list are filled.
Also, in the multiple entity you will have to specify the minimum number of items.
Suppose that your multiple attribute is called mult_attr
, the expression in Min count will be: count(mult_attr)
.
Then, you have to define a calculated attribute inside the multiple entity, or an attribute with a default value specified, that takes one of the values of mult_attr
as value.
The expression in that calculated attribute will be: parent()/mult_attr[idm:position($context)]
That expression takes a value from mult_attr
, using the position of the current row in the multiple entity with the expression idm:position($context)
.
Here you can find a simple survey with an example of a table with predefined rows
Let us know, many thanks.
Open Foris Team
answered
24 Oct '22, 14:12
Stefano (OF) ♦♦
4.8k●1●1●9
accept rate:
19%