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

Image field formula with link

Pulling my hair out trying to get the systax/code right to have a formula image have a hyperlink.

Can anybody help me with an example? My formula draws 2 thumbnail images from an external server. Here is the code:

IMAGE("" &     Job_Number__c       & ".pdf.jpg.0", "") &" " & IMAGE("" &     Job_Number__c    & ".pdf.jpg.1", "No Preview Image Available.")

This puts both thumbnails next to each other with a space between them. I want each of these thumbnails to link to high res images on the same server.

My attempts using HYPERLINK with IMAGE are not working out... I searched this forum but came up empty so far.

Thanks for any insight.

Have a great long weekeend!

Try something like this:
HYPERLINK( url_and_args_for_high_res, IMAGE( url_for_thumb, "alt_text", height, width ) )
In other words, the syntax for hyperlink is HYPERLINK(url, friendly_name [,target])
and you just replace "friendly_name" with the contents of the IMAGE().
It looks like you are trying to display 2 thumbnails with one formula. Not sure if that can be done.
Try this:
 HYPERLINK( "" &  Job_Number__c & ".pdf.jpg.0.HIGH_RES", 
       IMAGE("" &  Job_Number__c  & ".pdf.jpg.0", ""), "No Preview Image Available.") )
Good luck.
Sean Shannon