I'm trying to invoke a simple JS function inside Markup Editor (FTL). It works at the preview stage of editor. However, when the same is rendered in task list on workbench/portal, the function doesn't get called (getting undefined function message). I have attached two screenshots to demonstrate.
Freemarker Java bindings work fine, same behavior in both preview and task.
Can anyone tell me if I've missed a step here or doing anything wrong ?