Create a list (as string) of questions answered with no

Thanks @wroos for your reply.

In the meantime I am following another approach, listing first all questions in a repeat group that retrieves the questions from a .csv. This has the advantage, that the coding in the xlsform gets much less crowded and questions can get managed independently from the form design. So far so good.

After the repeat, I want to list the data entered in "ra_mesures_correctives" in another repeat_group. This field only appears if "non" was first selected as a response to the initial question.

What does not properly work is the indexed-repeat. I do not manage to display the answers at the correct place.

When position(..) is "position(..)" no values are returned at all. If "position(..)-1" values are returned but at the wrong place.

Any ideas?

test_ra.xlsx (12.5 KB)
ra_norme_gestion.csv (772 Bytes)