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

Submit For Approval button not being enabled

Hi ,


I am facing a weird error where the submit for approval button in the approval history related list of the opportunity page is showing up as disabled, but actually when i clicked on it i realized that it is active and working fine. But I'm not able to display it as an active button. The opportunity page is overridden by the standard page. The contents of the page are below. I'm not able to figure out if this code is affecting that button. Please help!!!!!! 


<apex:page standardController="Opportunity">


    <script src="/js/functions.js" type="text/javascript"></script>

    <script type="text/javascript" src="/soap/ajax/16.0/connection.js"></script>   

    <script type="text/javascript" src="/soap/ajax/16.0/ajax.js"></script>  

    <script type="text/javascript">


    window.onload = init;


    function init(){


       // alert('__________________init');  

        if('{!opportunity.StageName}' != 'Proposal/Price Quote')


            //alert('_________________in if blk_');




    function  hideConvertButton(btnName){



                  var convertButtons = document.getElementsByName("piSubmit");

                 // alert('+++++++++++'+convertButtons);














        catch(e) {


            // var ee = e.message || 0; alert('Error: \n\n'+e+'\n'+ee);








      <apex:form >       


        <apex:Detail subject="{!Opportunity.ID}">           













Thank You.......