Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

New text field value not getting saved in metadata of workflow?

Avatar

Level 1

We had requirement to add new text field in workflow completion dialog as shown below.

/libs/cq/inbox/content/inbox/dialogs/workitemcompletedialog/items/form/items/testTitle

bhagiyabalajis7_3-1719384819475.png

bhagiyabalajis7_0-1719384653332.png

 

We also updated "inbox.commons.workitem.js" highlighted in bold below and also in screenshot before post call is made.

/libs/cq/inbox/gui/components/inbox/clientlibs/commons/js/inbox.commons.workitem.js

 

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

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

 

bhagiyabalajis7_1-1719384652881.png

 

The new field is not getting stored in metadata. Looks like the changes made in "inbox.commons.workitem.js" is not somehow getting reflected. Even we commented the entire js code, still workflow is getting completed, but new dialog data is not getting stored. Not sure what we are missing here. Can you please help?

 

Note:

1. For showing purpose have modified directly under libs, but same was tried after extending the files under app

2. Already there is an answer, but not sure that is valid one.

 https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-do-add-extra-textfi... 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,


I don't fully understand what you are trying to do, but perhaps it is worth taking a look at the dialog participant OR the Dynamic participant steps. Here, you can simply attach a dialogue (with all your extra fields), and out-of-the-box, that data will flow as expected. Please check this: https://experienceleague.adobe.com/en/docs/experience-manager-65/content/implementing/developing/ext... 

https://medium.com/@toimrank/aem-dynamic-participant-step-1cd58e15f28 

Hope this helps



Esteban Bustamante

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,


I don't fully understand what you are trying to do, but perhaps it is worth taking a look at the dialog participant OR the Dynamic participant steps. Here, you can simply attach a dialogue (with all your extra fields), and out-of-the-box, that data will flow as expected. Please check this: https://experienceleague.adobe.com/en/docs/experience-manager-65/content/implementing/developing/ext... 

https://medium.com/@toimrank/aem-dynamic-participant-step-1cd58e15f28 

Hope this helps



Esteban Bustamante

Avatar

Administrator

@bhagiyabalajis7 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni