Message error: Cannot read property 'forEach' of undefined

Hello to everyone, I’m new on this amazing Kobotoolbox, I’m working on my first form. I defined the questions (more or less :)) but today this message error appears when I tried to preview that form.

“Cannot read property ‘forEach’ of undefined”

Why? What happens? Everything seemed to be ok before that message.
Thank you in advance! :grinning:

Luca

Hi @luca_bolognini,

Welcome to the community! Sometimes you see error message in your survey Preview when you mistype language that you specify within your survey form,

Here is a scenario of the issue:

Mistyping language English (en) as English ("English (en)") should cause preview issue.

In the survey tab of your xlsform:
Image 1 (survey problem)

In the choices tab of your xlsform:
Image 2 (choices problem)

In the settings tab of your xlsform:
Image 3 (settings problem)

Preview with Error Message:

Reference xlsform: Problem
Preview Error (Problem).xlsx (11.0 KB)


Here is a scenario of the solution:

Correctly typing language English ("English (en)") as English (en) should solve your preview issue.

In the survey tab of your xlsform:
Image 4 (survey solution)

In the choices tab of your xlsform:
Image 5 (choices solution)

In the settings tab of your xlsform:
Image 6 (settings solution)

Preview with Error Message:

Reference xlsform: Solution
Preview Error (Solution).xlsx (11.0 KB)

Have a great day!

2 Likes

OOOOOHHHHHHHH, absolutely yes @Kal_Lam ! It is true, One of the last settings that I set up was language. The error appeared after the language setting…
THANK YOU very much!

2 Likes