Hi,
I have below requirement in Touch UI of AEM 6.2.
I have a basic workflow with two steps for Reviewer to reject or approve the workflow. These steps are shown as the dropdown options on the Complete workitem screen of the notifications page.
Currently the comments field on the Complete workitem page is optional. I need to make it mandatory for only rejection case, i.e. whenever reviewer selects Reject option from dropdown, comments should be mandatory field.
I tried adding "required=true" property in the "/libs/cq/workflow/content/notifications/completeworkitem/items/content/items/itemdetails/items/well/items/comment" node by overlaying. But that makes it mandatory for all the cases.
Can someone help me on it. Can I use listeners? If yes then where, as here there is no specific dialog?
Thanks in Advance.