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
DBAgent GatanDBAgent Gatan 

Using jscript to append text to a standard url in a related list called from a visualforce page.

In order to overcome the limitation of not being able to remove a standard button from a page layout, I created a simple visualforce page, removed the real related list from the layout, then added it's "stand in" visual force replacement to the layout.
This works very well with one exception. I need the Approve/Reject Link to open in a new window, but it's opening inside of the iFrame.
I'm trying to append &isdtp=lt to the Approve/Reject link, but every method i've tried in an attempt to inject it has failed.
Any help would be greatly appreciated.

Thanks,
Josh
 
<apex:page standardcontroller="SBQQ__Quote__c">
    <apex:relatedlist list="ProcessSteps" title="Approval History">    
    </apex:relatedlist>
    
	<!-- ************************** Remove the submit button ************************** -->     
    <script src="/resource/1420757809000/jquery"></script>        
    <script>		
        $j = jQuery.noConflict();        
    
    $j(document).ready(function(){$j("input[name='piSubmit']").hide();});                
    
    </script>
</apex:page>