Repeat_count creates a wrong value for first case (Enketo/Preview)


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)

  1. Import and Preview
  2. Enter a number for Total
  3. Look at the names (the first is empty!)

Expected behavior

First case should work as the following. Here showing the name based on the calculation.

Actual behavior


Additional details

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.

1 Like

Hi @wroos,

Thank you for flagging this out. Will have a look and get back to you.

Have a great day!

1 Like

Hi @wroos,

Yes, i have tested it again and it seems to work fine with Collect android app viz. KoBoCollect and ODK Collect while it does not work as it should with in Enketo.

Could you kindly create a GitHub issue here for the Enketo. Let me know if i should create a GitHub issue for you.

cc: @martijnr kindly please advise if you would like to add anything on this.

Have a great day!

1 Like