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
Chandra SekaranChandra Sekaran 

How to add validation for Reject button on Approval Process?

Hi,
I am using Approval process for fund request. In that, I need to validate the fields on Reject button click.If Rejection Reason is null, should show some alert message. How to achieve that validation.
User-added image
Thanks.
 
StephenKennyStephenKenny
Hi Chandra,

Unfortunately Salesforce does not allow you to enforce validation at this point of the process so you will not be able to achieve this. There is an Idea logged on the Idea exchange to enable this in the future. For some examples of how to build approval processes, take a look here:
https://help.salesforce.com/HTViewHelpDoc?id=approvals_useful_approval_processes.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=approvals_useful_approval_processes.htm&language=en_US)

Please remeber to mark this thread as solved  with the answer that best helps you.

Kind Regards
Stephen
 
Chandra SekaranChandra Sekaran
Thanks for your reply Stephen. Is it possible to hide the Reject button ? And create a new button in its place? 
Thanks,
StephenKennyStephenKenny
Hi Chandra,
Unfortunatly you are unable to remove the existing buttons and/or add new buttons. This part of the approva process is quite locked down at the moment. There are several ideas logged on the Idea Exchange to open this up, but so far, nothing further is in place.

Regards
Stephen
Chandra SekaranChandra Sekaran
Thanks  Stephen. Appreciate your help.