cancel
Showing results for 
Search instead for 
Did you mean: 

Add custom JavaScript and CSS to workflow forms

amitev
Champ in-the-making
Champ in-the-making
Hi! I configured a form for my workflow and added JavaScript dependency but it doesn't seem to be loaded. Here is my code:


<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?
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
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