How to make comments field mandatory when approval request rejected through List Choice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 03:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 04:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2019 06:34 AM
Hello Deepika,
I too had encountered with similar requirement in our project. Since the field have to be mandatory at the related list records, we have created a business rule in approval table. Basically the business rule will display an error message to enter the comments in the approval records before approval or rejection and abort the action to not to make any updates. I hope this could be good for your requirement.
Thanks and Regards,
Jagadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2019 12:02 AM
Can you share the snapshot of the BR you're referring to? I ask this because Comments is a Journal field and will always return empty on load. It will be great if you can share what's working for you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2019 12:34 AM
Hello,
I have used before update business rule with conditions having state is rejected and the below is the script I have used.
if(current.comments==""){
gs.addErrorMessage("Please go into the Approval Record to provide a Reason for Rejecting.");
current.setAbortAction(true);
}else{
return;
}
Regards,
Jagadeesh