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.
Are you logged in? Can't use JS if anonymous user.
The following are known limitations when using JavaScript functions in survey forms:
https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm