Message error: Cannot read property 'forEach' of undefined

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