I'm currently trying to write a custom function for a related list.
Unfortunately the deluge script editor doesn't seem to work properly for me. It won't let me save the script. In builder mode, it doesn't even show the buttons for saving / executing. In free script mode, it displays buttons but once I click "save", it will display "Saving..." and won't proceed.
Steps to reproduce:
1. Add related list
2. Select "custom function"
3. Provide name, description, argument (any values will result in same behavior)
4. Proceed to script editor.
I did notice that after executing step 4 above, the following error message is shown in javascript console (which seems to be related):
zc_workflow.js:1 Uncaught ReferenceError: $ is not defined
at zc_workflow.js:1
Once I go into free script mode and click "Save", it will throw the error below in javascript console:
Uncaught ReferenceError: delugeEditor is not defined
at populateUserFreeFlow (zc_workflow.js:1)
at HTMLAnchorElement.onclick (functions.do?sharedBy=SOMEPERSONALIDITHINK&frameorigin=
https://crm.zoho.eu&workflowLinkID=SOMEPERSONALIDITHINK&isUpdate=true&isNewEditModeEnabled=true:227)
populateUserFreeFlow @ zc_workflow.js:1
onclick @ functions.do?sharedBy=SOMEPERSONALIDITHINK&frameorigin=
https://crm.zoho.eu&workflowLinkID=SOMEPERSONALIDITHINK&isUpdate=true&isNewEditModeEnabled=true:227
See attached screenshots for details.
Furthermore I noticed that script editor DOES work when writing functions in "Setup > Automation > Actions > Custom Functions". However, functions written there won't let me specify proper return type and they are not shown in "related list custom function selection", which renders that useless to me.
I was wondering if thats related to using an EU zoho instance as nobody else seems to report any problems regarding custom functions for related lists (in fact I see that some people are using it successfully). Besides I'm currently using a TRIAL - don't know if this can have an impact.
Any help is highly appreciated. Thanks in advance!