You need to sign in to do that
Don't have an account?
Josh Harsh
How to create a visualforce page to display the website linked to an Account?
I am trying to develop a visualforce page that allows a user to see the Companies Website without having to leave the Account page. Is this possible?
try this code
I am unable to view https://rishav.na8.visual.force.com/apex/try2?id=0019000000y1NiP due to it being a seperate Salesforce instance. Do you have a different way that I can view it?
i had not told you to try my link but instead of this try this in your org.
1.open your developer console and make a new visualforce page, remove your existing code and paste this above code.
2. now take any acoount id from your org
3. add that accountId int the browser address bar ?youraccountId
Thanks
Rishav
or do you want to open this link automatically?
i told you to do experiment because which property will work within salesforce never be guarranted because they have their own styling and all .so just do some experiment.
Thanks
Rishav
<apex:page standardController="Account">
<apex:form >
<div>
<a href="{!Account.website}" target="_self">
{!Account.website}
</a>
</div>
</apex:form>
</apex:page>
The thing is it is adding the Salesforce URL infront of the actual web page. Is there a way to remove that piece of the URL?
Hey what's problem if user will have to click back button once according to my solution. i also tried in many ways but not coming.
Best of Luck
Thanks
Rishav