While update a workflow activity and this results in an error: onSubmit script error: EncryptedVariable is not defined... Issue Customer is getting error when trying to update a value in the wf Error MessageonSubmit script error: ReferenceError: EncryptedVariable is not defined: function onSubmit() { if (g_form.getViewName() != 'diagrammer') return; var encryptedVariable = new EncryptedVariable($j); return encryptedVariable.submitEncryptedInputs(); }ResolutionIn the background the activity is trying to initilalise an object called EncryptedVariable (with capital E). But the library where it needs to get this from is never defined, so you get that error. You need to make sure the library is present and to do that you can just add the required field like this:1) Open the activity on a workflow 2) Click on the activity's context menu 3) Configure > Form Layout 4) Add 'Activity Encrypted Input field' to the right slushbucket 5) Update the activity again When you add this field you also add the library in the background so the code it references executes properly.