In Enketo (Preview) a dynamic repeat_count provokes a wrong value for the first repeat case, The value is based on a calculation which references a variable just before.
Steps to Reproduce
See XLSForm example attached.
BugIV_03.xlsx (36.6 KB)
- Import and Preview
- Enter a number for Total
- Look at the names (the first is empty!)
First case should work as the following. Here showing the name based on the calculation.
XLSForm, OCHA, current Enketo/Preview (15/06/2020)
I works well and as expected, if there is no dynamic repeat_count:
a) without repeat_count
b) with a fixed repeat_count = 2
It also works well in KoBoCollect with the dynamic repeat_count.
In the given version the LineHHM is not read_only (as do normally or take calculate type). The NAME field will be also be filled if you edit this LineHHM.