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
PandeiswariPandeiswari 

How to make Approval process comments field as mandatory?

Hi,

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 : http://christopheralunlewis.blogspot.in/2012/09/making-rejection-comments-mandatory-in.html

http://salesforce.stackexchange.com/questions/1751/making-approval-comment-mandatory


Thanks
Shashikant
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.
http://christopheralunlewis.blogspot.co.uk/2012/10/making-all-approval-comments-mandatory.html

Please let us know if this will help u

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