In Sitecore 9 Workflow, i wish to make the comments mandatory for some actions. While surfing i came across the below solution
and this worked perfect.
Anyways, I'm eager to check if there is any other option in sitecore to accomplish this without any custom code. I tried few things like duplicating the default comments template(Standard Comment Template) and assigning the Required validation rule for the Comments field.
Below is the screenshot of my validation rule,
But while executing the action without giving comments , I just got the warning pop up message which in turn allowed to press OK and the command executed. But my expectation is to abort the process if comments is not filled.
Please suggest any idea to achieve this.