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
Harikrishna MandadapuHarikrishna Mandadapu 

how to throw a custom validation message when user click on reject button in approval process

I have created an approval process and I am invoking it using process builder. I want to throw a validation message when user click on reject button on approval request. How can I achieve this.
SandhyaSandhya (Salesforce Developers) 
Hi,

I think you cannot write validation rule on approval process.

Please refer below link.

https://success.salesforce.com/ideaView?id=087300000007lcT
 
Thanks and Regards
Sandhya
Akhil AnilAkhil Anil
What's the rejection action on the approval process ? If there is a rejection which does a field update, then you can write a validation rule on that field change.
Harikrishna MandadapuHarikrishna Mandadapu
when user clicks on reject button I want to redirect to a custom visualforce page. There I want to show custom message and provide required buttons.