Select to view content in your preferred language

Survey123 Webform TypeError: Cannot read property 'require' of undefined

04-13-2020 06:18 AM
New Contributor III

Survey 123 form is attached. Was created in Survey123 Connect Ver 3.7. This survey was working several weeks ago but now when trying to open the webform I get the error :

Error: Initializing form...

  • TypeError: Cannot read property 'require' of undefined

I feel like this may have to do with a recent update, but I'm not sure what changed and how to fix it.

Tags (1)
0 Kudos
11 Replies
Esri Esteemed Contributor

Hi Daron,

I can see the behavior you describe with your form.  In troubleshooting it, it appears the issue has to do with the read-only geoshape question- making that not read-only resolves the issue.  As you mentioned, this was working correctly in a previous version - turning on version locking will resolve the issue, if you are able to.

New Contributor III

Hello James,

I am having this issue currently.

Was this bug logged to be look into further? I just upgraded to Survey123 Connect 3.9.120 and am getting this issue on my survey, which has a Geoshape question. It seems that something evening as simple as the image below causes this error.

Thank you and have a nice weekend!

New Contributor III

After further testing this seems to occur also on Geotrace questions, but not to Geopoint questions.

0 Kudos
Esri Contributor

I've been able to reproduce this behavior with a Geotrace question as well. James Tedrick any insight into which version of Survey123 Connect this works in, and any update if the bug will be addressed in the next release?

Occasional Contributor

UPDATE: I cleared my browser and it still won't work. 

I'm having the same issue but my says 'Cannot read property 'replace' of undefined'. I used 3.11 Survey123 Connect. The only difference is I have a geopoint. However, in the .xlsx I don't have it as a ready only (readonly is blank). 

So, what else could be causing the issue? @JamesTedrick  or @JodyZhengLiu 

Jen Zumbado-Hannibal, GISP
GIS Coordinator
City of Forest Grove
Forest Grove, OR 97116

0 Kudos
Esri Contributor

Hi all,

Thanks a lot for the feedback. This is fixed on

Thank you,

Jody Zheng Liu

New Contributor III

Thank you so much Jody!!! Works perfectly again

0 Kudos
New Contributor

Hello All,

I'm also facing similar issues. The error I'm getting when I open the weblink is

New Contributor II


We are getting that same error. Were you able to figure out the cause @PriyaRajan1 ?


0 Kudos