Skip to main content
Level 2
Sep 7, 2018 1:50 PM UTC
Solved

How to do add extra textfield workitemcompletedialog in workflow

Hi Team,

         Issue: I didn't see property value history metaData node in workflow instance node.

          I am overriding  workitemcompletedialog   /libs to /apps path.

/libs/cq/inbox/content/inbox/dialogs/workitemcompletedialog/items/form/items    to   /apps/cq/inbox/content/inbox/dialogs/workitemcompletedialog/items/form/items

added extra textfield in  workitemcompletedialog dialog box in /apps path

Provided title name and comment  in dialog box click Ok button.

completed work flow and generated  history nodes metadata, i didn't find textfield value in metaData node. Please find attachment.

Thanks

Kotireddy Naru

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Jun 26, 2024 9:11 AM UTC

Hi @bala3 
You may need to check the correct js file, the solution which was shared earlier was based on AEM 6.3 or 6.4

Arun Patidar

5 replies

arunpatidar
Community Advisor
Community Advisor
Sep 8, 2018 1:43 PM UTC

Hi,

You need to include your custom field value in post request, so that it can be process and saved in task metadata.

Go to /libs/cq/inbox/gui/components/inbox/clientlibs/commons/js/inbox.commons.workitem.js and add below line at line number 399. so your new data will be look like this. the 3rd line have my custom type stepTitle.

data[("stepTitle-" + taskId)] = $("[name=stepTitle]", "#workitemCompletionDialog").val();

After adding your code it will have all 3 values.

data[(postDataSelector + taskId)]   = coralNextStepSelect.value;

data[("comment-" + taskId)] = $("[name=comment]", "#workitemCompletionDialog").val();

data[("stepTitle-" + taskId)] = $("[name=stepTitle]", "#workitemCompletionDialog").val();

Translate
Arun Patidar
Level 2
Sep 8, 2018 8:30 PM UTC

thanks Arun

Translate
Level 2
Jun 20, 2024 8:44 AM UTC

Hi Koti, For you did this work? Did you make any other change additional to what was given above? Please help

 

Thanks

Bala

Translate