You need to sign in to do that
Don't have an account?

Open Link in visualforce in new window, not within VF page
Hi,
I created a related list of Opportuinity Approval History, purely to remove the Submit for approval button.
Now this sits in the detail of the opportnuity page but when someone clicks on the Recall/Approve/Reject links it opens the page within the visualforce and not in a new window.
Does anyone know how I can open these links in a new tab or page
Thanks
Code:
<apex:page StandardController="Opportunity">
<apex:relatedList list="ProcessSteps" ></apex:relatedList>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("input[name='piSubmit']").hide();
});
</script>
</apex:page>
I created a related list of Opportuinity Approval History, purely to remove the Submit for approval button.
Now this sits in the detail of the opportnuity page but when someone clicks on the Recall/Approve/Reject links it opens the page within the visualforce and not in a new window.
Does anyone know how I can open these links in a new tab or page
Thanks
Code:
<apex:page StandardController="Opportunity">
<apex:relatedList list="ProcessSteps" ></apex:relatedList>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("input[name='piSubmit']").hide();
});
</script>
</apex:page>
You need to set target attributes on links and modify the onclick action in the input button. You can try with the following:
Hope this helps you.
Emmanuel Cruz