Problems with data in generated repeat groups in Enketo

Hi @Mohmad_almAD,
Here is an example, with two options: A list like a select_one (without buttons) and a note (multiline) field. Beneficiary04.xlsx (14.3 KB)
image

Solution 1 uses select_one from repeat (see Form Logic - ODK Docs), the read_only hides the buttons, but only working well in Enketo).

Solution 2; I didn’t find yet a way to bring newlines in the note solution. Maybe the community can help here.

There has also been previous discussions in the forum for similar requirements, which can be found with the search function of this forum. For example; How do i display the responses (in a note) that i made for a multiple response question? - #13 by Kal_Lam and Begin_repeat - #9 by Xiphware.

If you use it, please, test also the data export and report, if this is what you need.
Furthermore, you would need to:

  • confirm that PhoneNo is mandatory
  • confirm that 0 beneficiaries is allowed and what maximum (see constraint).

And see, if you want to:

  • get more compact lists (use appearance, e.g. columns-2, columns, or columns-pack)
  • forbid duplicate selection (could be done by choice_list or constraint)
  • constraint the mobile number entry (regex)
  • show the label of the beneficiary choice instead of the name (use jr:choice-name() function).

@Kal_lam. Perhaps you can extract the new discussion to an extra topic, please. E.g. How to show a listing of repeat values (and labels).