JavaScript functions are only currently supported in forms when completed by a user from the same organisation. Extending this to allow users from other organisations to access the same functionality would be extremely useful. An example of this need is where we have several survey forms created within our organisation. These forms are used by both staff (within our organisation) and community users (part of our Hub Premium community). Though both organisations are ours, it is not currently possible to generate a single form with javascript functions that works across both linked organisations.
Source: https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm
- JavaScript functions are only supported in forms completed by users in the same organization as the form author.