Hi y'all!
I'm working with a script on my survey:
The pulldata and the script are working properly before the survey is published.
Once the survey is online the script doesn't work. Checking the developer options on my browser I found this message:
It basically says that JavaScript Functions are disabled.
Do you know how to fix this?
I couldn't find an option to enable them.
Thanks!
Solved! Go to Solution.
Are you logged in? Cannot use JS if anonymous user. Also cannot use JS across AGOL organizations.
https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm
Are you logged in? Cannot use JS if anonymous user. Also cannot use JS across AGOL organizations.
https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm
Thank you, I have this survey open for everyone so there's the problem.
I'm trying to make users only write in upper case and the script was an easy solution.
You can use regex for upper. Check out the bible https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm
Was just about to say that. Will also toss in the key phrase "cannot use JavaScript in public surveys"
To quote JamesTedrik here:
Status changed to: ClosedAs mentioned in previous comments, the security team raised concerns with implementing this feature as it can potentially lead to untrusted JavaScript running on a user's device or browser (this was the reason for the original design limitation of requiring a user to be in the same organization as the form's author that currently exists).