Salesforce Hyperlink Formula Syntax
Hyperlink formula fields are Text Type.
Always include the web protocol and the URL in quotes, followed by the its labeling text HYPERLINK("http://www.salesforce.com", "salesforce").
When you’re hyperlinking to actual Salesforce pages, we call this the URI, or relative URL, simply because you are not writing out the full web protocol and URL. Instead, exclude your Salesforce’s instance’s value and the trailing .salesforce.com, instead input only what comes after the .com. For example, https://yourInstance.salesforce.com/00Z/a, then the URI to include is actually just “/00Z/a”. Relative links allow the hyperlink to work correctly on all Salesforce pages. Use the relative URL in a hyperlink formula to add it to a search layout. Make sure to include forward slash at the start of your URI.
Avoid using LEN, LEFT, or RIGHT on HYPERLINK text functions results.
No JavaScript can be included for security reasons.
Use the $Api variable to reference API URLs.
Remove the brackets, [ ], from your formula before validating it.
The target parameter is optional. If you do not specify a target, the link opens in a new browser window.
Target paremeters: _blankDisplays go in a new unnamed window. _selfDisplays go in the same frame or window as the element that refers to it. _parentDisplays go in the immediate frameset parent of the current frame. This value is the same as _self if the current frame has no parent. _topDisplays go in the full original window, canceling any other frames. This value is the same as _self if the current frame has no parent.For more information on basic HTML tags, consult an HTML reference on the Internet.









