+ Start a Discussion
SandrineSandrine 

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 Sandrine
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
SandrineSandrine
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.