Select to view content in your preferred language

Survey123 Widget JSAPI Call for Disconnected Env

109
1
Jump to solution
02-19-2025 08:24 AM
Labels (1)
BrandonCranfield
Regular Contributor

Version: Enterprise 11.4

OS: Windows Server 2019

On-prem/diconnected

Hello all,

Currently running into a situation where the Survey123 Widget in Experience Builder is trying to reach out to https://survey123.arcgis.com/api/jsapi/3.20. I have already configured the Enterprise to point to local resources as well as configured Survey123 Website to do the same. I have followed the 'find and replace' documentation to replace www.arcgis.com and survey123.arcgis.com/api with our paths to the portal and survey123 hub url. I did discover that in "C:\Program Files\ArcGIS\Portal\apps\experiencebuilder\cdn\287\widgets\survey123\dist\runtime\widget.js", there is a hard-coded entry for /api/jsapi/3.20. Not sure if that is a contributing factor to the issue. 

Any assistance would be greatly appreciated.

A ticket has already been submitted. Case#: 03838885

0 Kudos
1 Solution

Accepted Solutions
BrandonCranfield
Regular Contributor

With the help of a good friend, the issue has been resolved.

With Enterprise 11.4, the Portal/Sharing/Rest Organization Settings do not totally overrule config.js files buried in the framework. To fix the Survey123 widget inside Experience Builder, both of the config.js file listed in the below paths should be changed to reflect your current Survey123 configuration (i.e. yourportal.domain/survey123):

  • C:\Program Files\ArcGIS\Portal\framework\template\filetokens\framework\webapps\arcgis#home\js\arcgisonline
  • C:\Program Files\ArcGIS\Portal\framework\webapps\arcgis#home\js\arcgisonline

After changing these 2 files, restart the portal service. 

View solution in original post

0 Kudos
1 Reply
BrandonCranfield
Regular Contributor

With the help of a good friend, the issue has been resolved.

With Enterprise 11.4, the Portal/Sharing/Rest Organization Settings do not totally overrule config.js files buried in the framework. To fix the Survey123 widget inside Experience Builder, both of the config.js file listed in the below paths should be changed to reflect your current Survey123 configuration (i.e. yourportal.domain/survey123):

  • C:\Program Files\ArcGIS\Portal\framework\template\filetokens\framework\webapps\arcgis#home\js\arcgisonline
  • C:\Program Files\ArcGIS\Portal\framework\webapps\arcgis#home\js\arcgisonline

After changing these 2 files, restart the portal service. 

0 Kudos