You need to sign in to do that
Don't have an account?
Ola Bamidele
Automatically update website URL in visual force page
Hi Gurus,
I have created a form in VF that is linked to a custom object in Salesforce. After the form is completeed, the user is automatically directed to the home page of my website - as I done via an extention apex page.
However if I was to change my website, I will have to keep changing my code - which I obivously do not want to keep doing.
So how can I update my website URL without entering my VF code? I was told I could use a static resource but i'm yet to understand how it can be achieved using it even after research
Please if anyone knows how it can be achieved let me know, thanks very much!
I have created a form in VF that is linked to a custom object in Salesforce. After the form is completeed, the user is automatically directed to the home page of my website - as I done via an extention apex page.
However if I was to change my website, I will have to keep changing my code - which I obivously do not want to keep doing.
So how can I update my website URL without entering my VF code? I was told I could use a static resource but i'm yet to understand how it can be achieved using it even after research
Please if anyone knows how it can be achieved let me know, thanks very much!
BTW you have written your code as below:
I am just saying create a custom label with name WebsiteURL and keep the web address in the custom label's value. And update code as below use custom label.
PageReference rpage = new PageReference(Label.WebsiteURL );
redirect rpage;
All Answers
Hi Ayub,
Yes the apex entention redirects my form to my website apon completion. & how can I use a custom label to achieve this?
Thanks
BTW you have written your code as below:
I am just saying create a custom label with name WebsiteURL and keep the web address in the custom label's value. And update code as below use custom label.
PageReference rpage = new PageReference(Label.WebsiteURL );
redirect rpage;
The custom label worked well, thanks for the help!