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
AbAb 

Putting URL on the Page - dynamic link (if possible)

Hello,

How can i add a URL link to a VF page layout and is it possible that it can be dynamic as i wanted to do url passing.

thank you in advise
Best Answer chosen by Ab
Raj VakatiRaj Vakati
Its is possible as for as i know .. You can crare an input text that will take an URL and you can redirect by using the Page Refernce 
 

public pagereference callpageredirect(){
PageReference demoPage = new pagereferenct( ApexPages.currentPage().getParameters().get('dynamicURL'));
    demoPage.setRedirect(true);
    return demoPage;
}

 

All Answers

Raj VakatiRaj Vakati
Its is possible as for as i know .. You can crare an input text that will take an URL and you can redirect by using the Page Refernce 
 

public pagereference callpageredirect(){
PageReference demoPage = new pagereferenct( ApexPages.currentPage().getParameters().get('dynamicURL'));
    demoPage.setRedirect(true);
    return demoPage;
}

 
This was selected as the best answer
Raj VakatiRaj Vakati
Can you explan more what your are trying to do
AbAb
Hi Raj,
There is adress already on the standard lead page. Based on this address i want to generate a URL whic users can click and it willredirect to a map with the Adress passed in the URL.