Add custom JavaScript and CSS to workflow forms

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2011 11:16 AM
Hi! I configured a form for my workflow and added JavaScript dependency but it doesn't seem to be loaded. Here is my code:
If I include the script in a config tag without evaluator, it gets loaded. Idea what I am doing wrong?
<alfresco-config><config evaluator="string-compare" condition="jbpm$adrwf:TestFlow"> <forms> <dependencies> <js src="/workflow/testflow-min.js" /> </dependencies>……..
If I include the script in a config tag without evaluator, it gets loaded. Idea what I am doing wrong?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2012 02:58 PM
Hello,
in case someone else might be stumbling across this old post, here is at least one answer. The forms configuration for JS/CSS dependencies is only retrieved for configuration sections that are NOT restricted to a specific content type, node or task. That means only global configuration sections without an evaluator and condition will be looked up for such dependencies.
Including additional dependencies dynamically based on the object being edited would be a neat feature, but is not available as of yet and - at least to my knowledge - not currently planned.
Regards
Axel
in case someone else might be stumbling across this old post, here is at least one answer. The forms configuration for JS/CSS dependencies is only retrieved for configuration sections that are NOT restricted to a specific content type, node or task. That means only global configuration sections without an evaluator and condition will be looked up for such dependencies.
Including additional dependencies dynamically based on the object being edited would be a neat feature, but is not available as of yet and - at least to my knowledge - not currently planned.
Regards
Axel
