You need to sign in to do that
Don't have an account?
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_');
hideConvertButton("convertButton");
}
}
function hideConvertButton(btnName){
try{
var convertButtons = document.getElementsByName("piSubmit");
// alert('+++++++++++'+convertButtons);
convertButtons[0].className="btnDisabled";
convertButtons[0].disabled=false;
convertButtons[1].className="btnDisabled";
convertButtons[1].disabled=false;
}
catch(e) {
// var ee = e.message || 0; alert('Error: \n\n'+e+'\n'+ee);
}
}
</script>
<apex:form >
<apex:Detail subject="{!Opportunity.ID}">
</apex:Detail>
</apex:form>
</apex:page>
Thank You.......