+ Start a Discussion
fsiddiq3fsiddiq3 

Custom Button for Link to related list

Hello all,

 

   I have created a custom button for a link that is a related list, however I have records from the related list on 2 pages. When I am on the 2nd page of the related list and click into a record and I hit my button it takes me back to the first page of the related list instead of back to the 2nd page. Is there anyway I can write my formula so it will take me back to either the 1st or 2nd page? Here is my button link

 

https://na2.salesforce.com/a0w?rlid=00N40000001n7Rf&id={!Trade_Calender__c.AccountId__c}

 

The '00N40000001n7Rf&id' is my page reference but it is only for the 1st page of the related list.

 

i hope this make sense, any ideas? Any help would be greatly appreciated, thanks.

 

Fahad