Skip to main content

Hi,

 

We have a requirement wherein the manager can either approve the request or reject the request. Adding comments while taking reject action is manadatory. All these valiadtions have put in the SmartForms but we are also providing the worklist control to the manager to take action directly from there.

 

But when taking the action(Approve/Reject), manadatory comments are not asked. So is there a way by whih we can enable adding comments before taking action using the worklist control?

Hi,

 

Then only way i can think of is dont display reject option in the worklist control. As per the business requiement if user wanted to reject the request, then he should open the form and there you can handle the comments mandatory via validation. So to hide Reject action displaying in the Worlist control follow below steps;

 

1) Run the client event (Default client /Smartforms client whichever you are using) and navigate to Action wizard.

2) Select Reject Action and click on Edit button, below snapshot will display

15423i2185A52D8B96D693.png

 

Uncheck the "Make the action available without opening the work list checkbox and finish the event running. 

Redploy the workflow. any new requested created wont have Reject action available on the worklist control dropdown.

 

Hope it helps!

 

Cheers,

Prajwal Shambhu

 


One other way I can think of is to build your own own custom worklist.  By creating a composite smartobject, you can have the worklist smartobject join with your own smartobject and render together in a list view.  That way you can control the action per row, or mutliple rows with for-loop.


Reply