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

Custom Hyperlink field and merge field values

I have created a field on the contact record titled Twitter User Name.  I am now trying to create a hyperlink formula field that will take the user name entered and add it to the Twitter URL and I can't get it to work.  It works great as a custom link but I want to be able to place the URL in the page layout and not in the custom link section.  Any suggestions?

I have tried both of these options

HYPERLINK("", "Twitter Account" )

HYPERLINK("", "Twitter Account" )

You can't just use a merge field inline in a formula field like that -- you have to concatenate together a string.  See my post (third post down) in this thread for an example:
So to be clear, you probably want something like:

HYPERLINK(""&Twitter_User_Name__c, "Twitter Account" )

The & is the concatenation operator.
THis worked great, thank you so much.  I have to ask, is there a way using the same formula to have my new custom field display blank unless there is an entry in the Twitter_User_Name__c field?
chopair -

You might want to look at the IF function - methinks this will give you what you want.

Hope this helps.
I have the same need for another application: appending a custom field to a base URL and make it a hyperlink.

I added a text custom field to Cases and a formula field that concatenates that text field with the beginning of a URL. (I also added the IF just to make it nicer)

My question is: do we have to have two fields to do that? Would it be possible to have a text field that asks for just the Twitter name in editing mode and display the field as the URL to the Twitter page in reading mode?
I'm asking because I don't like having two lines for basically the same information in reading mode and I couldn't really find a way to do that.


You do need 2 fields, but you can set up your layout such that the base field shows only on edit pages by putting it in a section on the layout that is shown only in Edit Mode (this will still pose an issue for inline editing though, fyi).  The formula field will never show itself in edit mode, so you don't have to worry about that.
Can you share teh IF code you used to hide the field if the input text field is blank?
IF( Field__c="","",HYPERLINK(<your stuff here>))
Thanks so much
Thanks for your answer werewolf!

hil tonhil ton
Nice to see this post here. Hotspot Shield is described as 'software application developed by AnchorFree, Inc. that allows the user to connect to the Internet via VPN. Most of the VPN services or software like hotspotshield have free plans or offers a free trial. Some of the best hotspot shield alternatives that you can use are given here.
Millar DakkimMillar Dakkim
In such a case, our professionals guide you in the proper direction as per your business nature. If you are looking for a reliable edtech software development firm, I recommend you Edtech Software team . With hundreds of resources and thousands of projects delivered, developers use Industry best practices and the latest tools and techniques to deliver projects on time.
Robert CrookRobert Crook
A merge field is a field you can put in an email template, mail merge template, custom link, or formula to incorporate values from a record. Syntax and Formatting
Mosh HamedaniMosh Hamedani
Information Transformation Services is endowing the clients with a stunning and impressive visual experience crafted by 3D Modeling Services. ( We are completely forted to offers our customers with a range of appealing 3D designs that are carefully crafted to meet with all type of requirements.
Emma James 9Emma James 9
You can apply for a $300 payday loan ( through The company offers a network of direct lenders you can use to get a $300 loan when you need cash quickly. 
Let's use it safely with Toto Position, a safe playground! TotoPosition is the only one that can reliably select numerous scam sites. We recommend that members use only safe sites by clearly classifying all safety sites, major playgrounds, eat-and-run sites, and safe playgrounds about Toto, and share know-how and information about Toto to maximize profits. We operate with focus on