Select to view content in your preferred language

Survey 123 form Error: Initializing form... Error: not a object

3464
41
Jump to solution
a week ago
PaulSweeney3
Frequent Contributor

Hi All 

See screen shot below that is appearing intermittently across our forms emebedded in  dashboards 

PaulSweeney3_0-1746527420296.png

the same dashboards were working fine a few days ago and no changes have been made to either the form or dashboard. it only occurs when the form is opened in edit mode. the globalid is present in the feature layer also . 

41 Replies
AlexCarter2
New Contributor

I have a readonly text question that has no calculation used and it is causing this issue as well.  Are we sure we need a calculation in that specific field?  

ChessClaire
New Contributor

@ZhifangWang the HTML work around does not seem to be working for me and I am not sure about using the beta version because we have an Experience Builder (EB) with a Survey widget that are in Production. Any idea's, support or suggestions? Unfortunately, this is a work stopper for our programs using the EB Survey configuration.

LoganLaudano
Occasional Contributor

Same situation over here as well

0 Kudos
ZhifangWang
Esri Regular Contributor

Hi @ChessClaire ,

This issue exists in the survey itself so you can test by directly opening it in the Survey123 web app https://survey123.arcgis.com/share/<surveyItemId>.

On the other hand, you can load the survey using the Survey123 beta web app in the widget of Experience Builder app by setting URL parameter https://experience.arcgis.com/experience/<itemId>?survey123=env:beta , which will use Survey123 beta envrionments for the Survey widget.

Please let us know if you still observe any issue in your workflow.

0 Kudos
MariannaTheodorou
New Contributor

In order to implement the suggested fix from @ZhifangWang How do I fix this calculation that has multiple functions:

(int(substr(${a_03_time_spent}, 0, 2))*60)+int(substr(${a_03_time_spent}, 3,5))

 

Specifically, how do I wrap this calculation with <p>, do I have to put the <p> around the whole calculation, or around each calculation part? 

 

Can you please provide me with an example. Thanks. 

Thanks.

0 Kudos
SteveMartin__MDTA_
Occasional Contributor

ChatGPT is a great resource for this

0 Kudos
ZhifangWang
Esri Regular Contributor

@MariannaTheodorou ,
As Steve suggested, ChatGPT or a similar assistant could help with this. Based on your expression, the following should work:

concat('<p>', (int(substr(${a_03_time_spent}, 0, 2))*60)+int(substr(${a_03_time_spent}, 3,5)), '</p>')

Note: the fix for this issue has been deployed to the Survey123 website earlier today, so your survey should work automatically without needing to apply this workaround.

0 Kudos
ANRGIS
by
Frequent Contributor

@ZhifangWang,

I implemented the change, wrapping note and read-only text fields with the html, but now I'm getting a different error through the Survey123 page (Screen Shot). I attached the XLS form. Really need this to be fixed for field staff using the application - thanks for the attention ESRI staff. I implemented the fix  on the green highlighted rows in the xls form.

ANRGIS_0-1746802861355.png

 

 

0 Kudos
JackFanZhang
Frequent Contributor

New issue to me. Seems new version of web form has introduced some bug that can't be handled by the old template. Originally I had it set to always use the latest version in Survey123 Survey setting. Fixed by change it back to use the version published with.

JackFanZhang_0-1747022235780.png

 

0 Kudos
ANRGIS
by
Frequent Contributor

@JackFanZhang,

Unfortunately I already published with 3.22 (current version) and I believe older Connect version are not available. 

0 Kudos