Select to view content in your preferred language

Error Initializing form..

128
2
Jump to solution
11-20-2024 02:18 AM
JoCondliffe
Occasional Contributor

I'm getting an error on a published form created in Survey123 Connect saying "Cannot read properties of undefined (reading 'on')".

JoCondliffe_0-1732097694617.png

The form is fine in Survey123 Connect but throws the error when viewing in browser. Is anyone else experiencing this or know what the problem might be?

Thanks

0 Kudos
1 Solution

Accepted Solutions
CodyPatterson
MVP Regular Contributor

Hey @JoCondliffe 

Would it be possible to attach the XLS to the post? I believe there may be a variable or an incorrect value associated with "on" that could be throwing this error. You may want to Ctrl + F to see if you can find all instances of "on" and see if there is an issue somewhere in the code.

Cody

View solution in original post

0 Kudos
2 Replies
CodyPatterson
MVP Regular Contributor

Hey @JoCondliffe 

Would it be possible to attach the XLS to the post? I believe there may be a variable or an incorrect value associated with "on" that could be throwing this error. You may want to Ctrl + F to see if you can find all instances of "on" and see if there is an issue somewhere in the code.

Cody

0 Kudos
JoCondliffe
Occasional Contributor

Hi @CodyPatterson, solved the problem (kind of). Yes it appeared to be an issue with a calculation, not sure what changed as it was working yesterday and survey123 connect didn't show an issue. I removed it in the end as it was just to create some additional content and I decided it's easier to process via Python after submission.