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
SantDevTeamSantDevTeam 

URL Custom field and UI question

I'm fairly new to SDFC development and have a question with respect to the URL data type in Custom objects. Our customer wants us to create a custom object and have a field in there that allows them to click a fixed text string and it then re-direct them to our product website. I started lokking into how to do this and found the URL data type. Seems to be what I wanted. However, the one problem is that what gets displayed to the user is the actual URL that gets linked to. What the customer wants is to have a fixed string ("View Documents") displayed in all cases with just a different URL be under the hood, so-to-speak. Is this possible? Is there another approach to doing this? Thanks for any help, Andy.
Best Answer chosen by Admin (Salesforce Developers) 
norbert.wallnernorbert.wallner

This should be possible with a formula field (text) and the function Hyperlink.

All Answers

norbert.wallnernorbert.wallner

This should be possible with a formula field (text) and the function Hyperlink.

This was selected as the best answer
SantDevTeamSantDevTeam

 

Thanks - that did the trick (once I worked out the Data Type was Formula then Text, rather than Text then Formula:)).