I have published a survey using the latest 3.10 version of Connect, that includes a JavaScript file in the extensions folder. Everything works great in Connect. I am opening the survey with a portalUrl parameter in a web browser (tested in MS Edge - 84.0.522.52, Chromium and Google Chome - 84.0.4147.105)
Running developer tools, a 400 error code is thrown trying to access the JavaScript file, with the message "Info file for item not found".
However, I can see the JavaScript file in the item content directory on the Portal server:
Is this just a limitation with the Survey123 website?
Solved! Go to Solution.
Hi. You need to put your JavaScript function in a folder called 'scripts'.
See https://community.esri.com/groups/survey123/blog/2020/08/07/extending-survey123-smart-forms-with-cus... for details.
The 'extensions' folder is only supported (for backwards compatibility) with previous versions of Survey123 field app.
Hi. You need to put your JavaScript function in a folder called 'scripts'.
See https://community.esri.com/groups/survey123/blog/2020/08/07/extending-survey123-smart-forms-with-cus... for details.
The 'extensions' folder is only supported (for backwards compatibility) with previous versions of Survey123 field app.
Perfect, thanks Ismael! We're up and running!
I have a similar problem, I am getting the following error when trying to publish from Survey123 Connect v 3.9.20 to AGOL (maybe a portal for my org?) Here is the error message. I have also attached a snapshot of the folder for my survey123 project.
The form is still pertinent, so any shortcuts to avoid rebuilding entirely would be appreciated.
@DanaLRobinson Please upgrade Survey123 Connect to the latest release. Upgrading Connect will not cause data loss. If the problem persists I suggest you contact Esri Technical Support so they help you recover your existing survey from ArcGIS Online. The process is as follows:
Step number 2 can be dangerous if you do not know exactly how to delete the local copy. To do this with confidence please open an Esri Technical Support case so they can guide you.
Thank you! That worked! Form is saved!