Select to view content in your preferred language

File not found : function.js - Getting this error after while testing the published Survey

354
1
01-24-2024 10:23 AM
pramodmandali
Emerging Contributor

I have created pulldata function to pass the parameter to my custom javascript function and it is working file when I test the changes in Survey 123 connect but while testing the survey, getting file not  found function.js error. 

pramodmandali_0-1706120541389.png

 

0 Kudos
1 Reply
DianaTorres10
Occasional Contributor

Are you logged in?  Can't use JS if anonymous user. 

The following are known limitations when using JavaScript functions in survey forms:

  • Document Object Model (DOM) is not supported.
  • Frameworks such as JQuery, Ember, and Angular are not supported.
  • You cannot access local files.
  • Asynchronous calls are not supported.
  • JavaScript functions are only supported in forms completed by users in the same organization as the form author.
  • JavaScript functions are not supported for public surveys.
  • A pulldata("@javascript") function cannot be called inside a pulldata("@json") function on the Survey123 web app.

 

https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm

0 Kudos