Currently, converting a Javascript List Button to a List Button that uses a VisualForce Page.
The button is on a related list on the Opportunity layout.
Is it possible to grab Opportunity fields if the standard controller is a different object?
error: Unknown property 'OpportunityRequest__cStandardController.Opportunity'
<apex:page standardController="OpportunityRequest__c" recordSetVar="OpportunityRequests">
<script>
if('{!Opportunity.Name}' != ''){
parent.window.location='/apex/oppRequest?&oppId={!Opportunity.Id}'
}
</script>
</apex:page>