Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Customise Create Workflow Warning Dialog message

Avatar

Level 3

Hi,

 

I have added a custom dropdown field by overlaying `/libs/dam/gui/content/assets/jcr:content/actions/selection/create/items/createworkflow`, alongside the "Select Workflow Model" option, which appears when the "Create Workflow" button is clicked. Currently, when the "Start" button is clicked, a warning popup displays the message: "You are going to trigger {0} workflow on {1} asset(s). Please confirm to proceed." This message comes from `/libs/dam/gui/coral/components/admin/timeline/events/workflow/clientlibs/workflow/workflow.js`.

 

With the new dropdown field, the message now reads: "You are going to trigger {workflow model name and content fragment model name} workflow on {1} asset(s). Please confirm to proceed." This occurs because the `workflow.js` script uses `var workflowName = form.find("coral-select-item[selected]").text();`, which appends the text of the selected dropdown values. The custom dropdown I introduced is also a dropdown, leading to the concatenation of the workflow model name and content fragment name without spaces in the warning message.

 

While I could overlay this `workflow.js` into `/apps`, the environment we are using is a shared tenant, and we do not want this message to impact other tenants. Additionally, the custom client library we introduced only loads if "dam.gui.coral.common.admin.timeline.events.workflow" is added as a category along with the custom category name.

 

We are using AEM6.5. Could someone please suggest how we can modify the message without affecting other tenants and the client library name?

Divya_T13_2-1744634462755.png

 

Divya_T13_1-1744633939507.png

 

@arunpatidar @EstebanBustamante

1 Reply

Avatar

Community Advisor

Hi @Divya_T13 

You can try overlay the workflow.js and put a condition in javascript to execute a custom message if payload paths from your tenant.

Arun Patidar

AEM LinksLinkedIn