I'm trying to write an EL expression so I can place it in the Advanced Configurations section where, given a File document type, if the parent of the File is a Folder document type, then I want the "State" and "Workflow" widgets to be hidden. Here's what I've found so far:
documentManager.getDocument(document.getData().getParentRef()).getParent("Folder") == 'hidden'
Any ideas for getting this EL expression right? I'm planning on putting this in the Advanced Configuration section in the widget.
Thanks!