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
pJabeenpJabeen 

How do I Hyperlink an Image

Hi There,

How can I set an image on the homepage and also hyperlink it ? can any of you please help me with the steps?

Thanks in advance
Jabeen
sfdc_ninjasfdc_ninja
If you are trying to put this on the homepage, then you would want to use a custom homepage component of type 'HTML Area'.  

Setup -> Customize -> Home Page Components -> New

User-added image


Select HTML area, and make sure you check the 'Show HTML' checkbox.  Now you can add any raw HTML to your homepage you want.
pJabeenpJabeen
Thanks for your response. I tried doing that way but instead of the image with hyperlink I am getting the below message ..guess I am going wrong somewhere. 

Test Image
HYPERLINK("https://cs7.salesforce.com/015M0000000IJYE").

Thanks,
Jabeen

Satish_SFDCSatish_SFDC
Try this:
<a href="your link"><img src="link to image"></a>

Regards,
Satish Kumar
pJabeenpJabeen
Hi Satish,

I am tryng to work it this out fisrt in my sanbox will the code differ. I am usign something like this

<a href="https://cs7.salesforce.com/500/e?retURL=%2F500%2Fo"><img src="/servlet/servlet.ImageServer?id=015M0000000IJYE"></a>

its stil not working

Thanks,
Jabeen
Satish_SFDCSatish_SFDC
The image tag is not closed.
Try closing it:

<a href="https://cs7.salesforce.com/500/e?retURL=%2F500%2Fo"><img src="/servlet/servlet.ImageServer?id=015M0000000IJYE" /></a>