Dear all, I cannot figure how to check comment field (but could be any field) when user press "Approve" or "Reject" in custom workflow. What I would like to achive is to have comments mandatory only when the task is rejected and optional when is approved.
I think in order to do this you will have to override some of Alfresco's client-side code. Through config, you could make the comments field required based on the task the user is currently managing. But to do it on the button click, you're going to have to add that yourself.