Bug 'textContent' Enketo

Hi all,

I’m having a problem with a survey in Enketo and I really can’t find the logic why it might be happening. I think it’s a bug.

I get the following ‘textContent’ error when opening the survey in Enketo:

The same xls in the KoboCollect app opens, with all the features and submissions working as expected.

The question that is causing the problem is a select_one_from_file [finename].csv, and the use of the ‘autocomplete’ feature and of the number of groups inside a repeat group seem both relevant.

I’ve tested 3 scenarios and have come to the following:

Scenario 1:

  • Repeat Group that contains two normal groups;
  • The relevant ‘select_one_from_file [finename].csv’ question is inside 2nd group;
  • ‘autocomplete’ appearance is on;
  • RESULT: produces the bug

Scenario 2:

  • Repeat Group that contains two normal groups;
  • The relevant ‘select_one_from_file [finename].csv’ question is inside 2nd group;
  • ‘autocomplete’ appearance is not added;
  • RESULT: does not produce the bug

Scenario 3

  • Repeat Group now contains only the 2nd group of previous questions;
  • The relevant ‘select_one_from_file [finename].csv’ question is inside this group;
  • ‘autocomplete’ appearance is on;
  • RESULT: does not produce the bug

To protect my client’s details, I’m attaching the XLS files of the different scenarios with only the questions that seem to be causing the problem. I am also attaching the csv files with dummy data:

scenario 1.xlsx (16.1 KB)
scenario 2 - no autocomplete, no error.xlsx (16.1 KB)
scenario 3 - 1 group, no error.xlsx (15.9 KB)
salespersons.csv (286 Bytes)
test.csv (151 Bytes)

Unfortunately, I really need to use this survey structure and need it working in Enketo too…

Can anyone please help me with this problem? It’s a long post, but I’ve just tried to be as detailed as possible

Thank you in advance!

@luisrodx, did you validate your XLSForm through this online validator to see if there are any syntax issues?

Hi @Kal_Lam , thanks for the reply.

I just did but, apparently, it’s not useful for when your surveys include csvs. I cannot upload these in this tool, so it gives an error when trying to preview in the browser.

But remember that it works in the KoboCollect app, and it’s odd that works in scenario 2 and scenario 3 that I shared but not in scenario 1.

1 Like

@luisrodx, so you mean the scenario 1 does not work and that is what I should be checking?

Hi @Kal_Lam , yes, that’s the one that does not work.