You need to sign in to do that
Don't have an account?
Steven Vawdrey 13
I need to convert a custom text field value to display as a link
We have a custom text field called Master Tracking Number that represents the tracking number used by UPS, FedEx, etc. I would love to be able to display this value as a link so that our users can click on the link which takes them to the link details. So, while the value of this field should display as 123ABC456DEF (unique number for each sales order) I would like the link to point to: https://www.google.com/#q=123ABC456DEF
Is this possible?
Is this possible?
This solution consists of creating two fields. The first field will be a text field that will contain the master tracking number - nothing else. This field will be populated via workflow, integration, etc., however, the Master Tracking Data is inserted into the field, that is how the data is imported.
The second field is a formula text field that will utilize the first field. Within the formula, you will also use the HYPERLINK function. There are two fields that are required, the third is optional. The First field is the URL. This will be the portion of the HYPERLINK that we will use the first field. the first parameter should look like the following: 'https://www.google.com/?q=' & <MasterTrackingField> . The second field is the actual text that will show up for the Hyperlink. For example, if your Tracking Field API Name is TrackingFieldNumber__c and on a particular Record it has the value of ABC123, then your formula would look like HYPERLINK('http://www.google.com/?q=' & TrackingFieldNumber__c,TrackingFieldNumber). When looking at the page detail the hyperlink would be the ABC123 that is clickable.
I hope this helps you.
Once you have solved you problem, please mark a comment as 'Best Answer' (even if its not this one). This marks this question as solved and helps the community!
All Answers
Once you have solved you problem, please mark a comment as 'Best Answer' (even if its not this one). This marks this question as solved and helps the community!
This solution consists of creating two fields. The first field will be a text field that will contain the master tracking number - nothing else. This field will be populated via workflow, integration, etc., however, the Master Tracking Data is inserted into the field, that is how the data is imported.
The second field is a formula text field that will utilize the first field. Within the formula, you will also use the HYPERLINK function. There are two fields that are required, the third is optional. The First field is the URL. This will be the portion of the HYPERLINK that we will use the first field. the first parameter should look like the following: 'https://www.google.com/?q=' & <MasterTrackingField> . The second field is the actual text that will show up for the Hyperlink. For example, if your Tracking Field API Name is TrackingFieldNumber__c and on a particular Record it has the value of ABC123, then your formula would look like HYPERLINK('http://www.google.com/?q=' & TrackingFieldNumber__c,TrackingFieldNumber). When looking at the page detail the hyperlink would be the ABC123 that is clickable.
I hope this helps you.
Once you have solved you problem, please mark a comment as 'Best Answer' (even if its not this one). This marks this question as solved and helps the community!
Eg,
HYPERLINK("/"& RecordId__c, Account.Name) In this the RecordId__c has the id of the account. And Account.Name has the name which you want to display on detail page. Use HYPERLINK("/"& RecordId__c, Account.Name) this value as formula in formula field.