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
kabkab 

page load

How can I read a URL value from a List button and it is  on on the standardview page not a custom VF page.
I am using this button as List Type and content source=URL and in the value= .../apex/opppty

 

can I pass the current URL to the button click  (like:.../apex/opppty?returl=https://cs4.salesforce.com/006?fcf=00BP0000000TbV4)

 

I just need to keep URL of  the original SF standard page  after loading my custom Visualforce page and when user wanted to go back to the page they can navigate there easily.

Best Answer chosen by Admin (Salesforce Developers) 
osamanosaman

Use this in your java script

 

window.location.href = window.location.href + ?YourParameter=ParameterValue;

 

All Answers

osamanosaman

If you have a custom button, you can execute tha javascript to pass in a query string parameter to the current URL.

 

Hope this helps

kabkab

Thanks Osama. can you put some example of javascript how to read current page url.

osamanosaman

Use this in your java script

 

window.location.href = window.location.href + ?YourParameter=ParameterValue;

 

This was selected as the best answer