function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to make Approval process comments field as mandatory?


I have created approval process on contact object and I would like to make Comments field as mandatory for both Approval and Rejection. Also I would like to save the comments in Notes Section of Contact object. Can anyone please share code.
Shashikant SharmaShashikant Sharma
You could creae a new field and get it updated on Approval and write a trigger on the object to validate that comment has been populated while approval.

See this example :

Amit Chaudhary 8Amit Chaudhary 8
Hi Pandeiswari,

Please check below blog "Making all approval comments mandatory in a multi-step approval process." with step by step process.

Please let us know if this will help u

Amit Chaudhary
Daniel VarhidiDaniel Varhidi
Anybody has workaround for Lightning? The mentioned solution just work for Classic.