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
SFDC0539SFDC0539 

Customize Approval History Related List

HI,

 

Can anyone help me out with suggestions on how can i customize the approval history buttons.

I have a requirement where once the record has finished the stages of approval the submit for approval button should be disabled. Also how can i customize the Approve/Reject buttons.

 

Please Suggest

Sridhar BonagiriSridhar Bonagiri

 

Hi,

 

As of now You cannot customize the buttons on Approval History Related list.

 

Sridhar Bonagiri

SFDC0539SFDC0539

I there any other way to go about this requirement....using java script?????

Santro652Santro652

To disable or making  the button in active approval process button you can do the following:

 

Create a field called Test(Number field) with the default value in it "0".

In the approval process entry criteria put this test field(Test__c) as one of the entry condition, example: (your exisiting entry criteria) && Test__c=0

When the record gets approved in the last step update the field "Test__c" with value as "1"(using the approval field update).

 

Now when the user clicks on the "Submit for Approval" button then a new page will come up stating "Approval process does not meet the entry criteria".

 

Hope this answers your question, if yes select this as the answer.

SFDC0539SFDC0539

Well thank you @Santro652. This does solve half my problem. But still i need control on the Approve/Reject buttons 

Stephen SpragueStephen Sprague
You could use part of the solution in the following link and update the approve / reject actions in the class....

https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AbeXIAS