0

In Sitecore 9 Workflow, i wish to make the comments mandatory for some actions. While surfing i came across the below solution

https://stackoverflow.com/questions/16895043/sitecore-workbox-make-comment-textbox-required

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,

validation rule

and i assigned this rule to my comments field mapping

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.

warning popup

Please suggest any idea to achieve this.

4
  • Can you include a screenshot of how you defined the validation rule. – Jen May 7 '20 at 6:56
  • @Jen , included the screenshots – Indhumathi May 7 '20 at 8:15
  • 1
    It’s a bug in sitecore it seems. You can get the patch upgrade from sitecore support. linkedin.com/pulse/… – sns May 7 '20 at 9:14
  • 1
    yes @sai. you are right. thank u – Indhumathi May 7 '20 at 9:58
0

Here is direct link to mentioned patch https://github.com/SitecoreSupport/Sitecore.Support.196255/releases/tag/8.2.0.0

Have the same issue in Sitecore 9.3. This patch helped to resolve it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.