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
DavidGenDavidGen 

passing current page's parameters with related list's custom button

Hi. I have a related list to include in my Visualforce "page1". I use: 

 

<apex:page standardController="Object1__c" extensions="pag1class">

<apex:relatedlist list="Objects2__r" />.

 

 On the other hand   related list 's  custom new button makes the following call to my Visualforce "page2": 

/apex/page2

 

if I need to pass Object1's Id , I make: 

/apex/pag2?objectID={!Object1__c.Id} 

 

but if I need to pass current page' s parameters of page1,

¿it is possible from my related list's new button (custom Buttons and Links section)?

 

Thanks in advance.