Repeat group related functions

Just a small question. Are the count(nodeset), sum(nodesetMember), min(nodesetMember) and max(nodesetMember) functions of enketo supported in CHT 3.15?
Thank you

Unfortunately, CHT 3.x has only limited support for repeats (and their helper functions). I believe that min and max should work as expected, but the count and sum functions are not supported.

The new version of Enketo in CHT 4.x has added much better support for repeats and all these functions should work as expected.

1 Like

@jkuester, testing an instance on 3.17, planning to upgrade once everything works to 4.x, we gave a select multiple question for lab test, where someone can select more than one lab test, and for each test, indicate the results, the form works on KoBo, but running the same on CHT, doesn’t provide the option for indicating the results of each lab test taken as below:

I tried a form with the same config, running in 4.9 code and it seems to work like I would expect:

What type of unexpected behavior are you seeing? Also, from your screenshot, it looks like you are putting the repeat inside the inputs group. I am not sure if that is related or not, but you might try moving the repeat out of inputs.

@jkuester, with the upgrade to CHT 4.9, the repeat group and related functions in XLSForms are working as expected, always appreciate the support.

2 Likes