Add new field in start workflow popup. is it feasible? if yes please share the steps. | Community
Skip to main content
July 2, 2024
Solved

Add new field in start workflow popup. is it feasible? if yes please share the steps.

  • July 2, 2024
  • 3 replies
  • 677 views

There is a requirement to get input from author when he starts workflow similar to existing field "Enter title of workflow", lets say "Author comments" in the red highlighted area shown in below screenshot. 

 

 

When I debugged for existing field "Enter title of workflow", I see the field input is hardcoded in jsp file and no where I could see the data is stored in AEM after Start workflow button is clicked. 

 

 

My question: Is it possible to add new field by customizing the jsp and store to AEM. Later pass the new field data from AEM to backend logic to show it in a email sent to approver?

Also is this correct practice to override the out of the box jsp code? 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi @bhagiyabalajis7 
You can try to overlay this and add new text filed, like you showed in the above example.

3 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
July 2, 2024

Hi @bhagiyabalajis7 
You can try to overlay this and add new text filed, like you showed in the above example.

Arun Patidar
EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
July 2, 2024

Hi, 

 

Yes, using an overlay is typically the correct approach in these situations. However, for your specific scenario, please keep in mind that the issue isn't just about adding the new UI field. You also need to consider how to handle this new field. The servlet that currently receives data ("/var/workflow/instances") won't manage this additional information you're posting. Therefore, you should also post to a different custom servlet, which will then trigger your workflow with this additional metadata.

 

 

Hope this helps.

Esteban Bustamante
kautuk_sahni
Community Manager
Community Manager
July 8, 2024

@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