Previous responses recalled in a note within a repeat group do not appear in downloaded data

What are you trying to achieve or report?

Following instructions on the forum, I recalled previous survey responses using the ${} function in a note at the beginning of a repeat group (see screenshot). This served to display respondent ID within the repeat group. When I download the data in XLS format, I hoped to see the recalled ID information within the repeat group data.

What’s happening instead?

However, the ID information recalled using the ${} function does not appear in the repeat group data, as seen in the screenshot below. Thus, it is difficult to know which response belongs to which respondent. It is possible to know by cross-referencing “_submission__id” within the repeat group with the same column in the main survey, but this is time consuming and not ideal.

How can I make the recalled answers appear in the repeat group data within the XLS file? Thanks in advance!

Attach relevant files (XLSForm, CSV, Screenshots, Logs)

You cannot save a replacement using a note like this. You could use a read-only text-field with a calculation.

The best approach is to use calculate as I have indicated in the attached image.

If you need to show this note to the user, calculate type (or hidden type) will not work. You could use a text type with read-only and a calculation formular to generate the (shown) text.

Note, (and no pun intended… :slightly_smiling_face: ) the XLSForm note question type is in fact just a convenience notation for a read-only text question, and indeed they become indistinguishable in the resulting XForm definition. So you can actually write a note question and put something in its calculation column, and you’ll end up with the note’s label and the calculation result shown underneath it, but it wont be editable.

I actually use (abuse?) note fields to both calculate and display interim calculation results for this exact purpose.

Hello and thanks for your reply! Unfortunately, this did not work for me. The ID information is still not shown in the downloaded data (XLS format). I’m left with more blank columns within the repeat group tab. Do you have any other suggestions?

Thanks for this info! I believe that is what I managed to do within the survey form itself. However, now I want the note’s calculation to show up within the data afterwards. Any suggestion on how to do this?

Thanks for the suggestion! Do you have an example that you could share? Would the calculation then appear within the data afterwards?

It already will. Try this form:

NoteCalculation.xlsx (8.3 KB)

Note question types are hidden by default in the DATA table for brevity, so the result (42) wont appear in your table. But if you export the actual raw submission data as, say, a csv or XLS then you will see the calculation result. eg CSV:

"note_with_calc";"_id";"_uuid";"_submission_time";"_validation_status";"_status";"_submitted_by";"version";"meta/rootUuid";"_index"
"42";"905923676";"24dd08d8-3853-46d9-9eb6-6d40a25327e8";"2026-11-02T07:00:24";"";"submitted_via_web";"";"vpVLpmYqqJjtncKjKWCMA2";"uuid:24dd08d8-3853-46d9-9eb6-6d40a25327e8";"1"

or XLS:

This worked, thank you very much! However, it doesn’t seem to apply retroactively to my already submitted surveys unless I edit the data of each survey individually and save the changes. Is there a way to apply it to all of my submitted surveys without having to edit every single one?

No, it wont.

Making changes to a form will not [with perhaps the exception of choice labels…] not change any previously submitted raw submission data. To ‘sync’ an old submission with the latest form version you’d have to open each for edit and re-save (which is ostensibly a re-submit). FWIW this behavior is quite deliberate: it prevents destroying critical and irreplaceable submission data by inadvertently making small changes to your form; eg setting a relevant condition to suddenly now become false could erase multiple fields from thousands of submissions.