You need to sign in to do that
Don't have an account?
sudhirn@merunetworks.com
Disable or hide submit for approval button in history section
Hi Experts,
We have a custom object SPR__c which has submit for approval button in history section this need to be removed or disabled since we have custom button new submit for approval this will be used
Please suggest me how to remove this button from history section I tryed below method adding code inside new submit for apporval button but it doesn't seem to be working
Please suggest.
Thanks
Sudhir
We have a custom object SPR__c which has submit for approval button in history section this need to be removed or disabled since we have custom button new submit for approval this will be used
Please suggest me how to remove this button from history section I tryed below method adding code inside new submit for apporval button but it doesn't seem to be working
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> <script> $(document).ready(function() { $("input[name='piSubmit']").hide(); }); </script>
Please suggest.
Thanks
Sudhir
First and foremost sincerely regret delayed reply.
I was able to use a sidebar component and jQuery to remove the Submit for Approval button. We needed some custom logic to execute before the record entered the approval process so we added a custom button to submit for approval and removed the submit for approval button on the Approval History section by adding the following sidebar component. Note this will break if Salesforce changes the name of the button component "piSubmit". Replace the ###### with a reference to a static resource with the jQuery.js. You can't use the functions in sidebar components for URLFOR. Kindly mark this post as solved if the information help's so that it gets removed from the unanswered queue and becomes a proper solution which results in helping others who are really in need of it.
Good Luck.
Best Regards,
Nagendra.P