Configuring URL link names by using the rich text display type for simple strings
About this task
When you use the rich text display type, you can define the URL by using the anchor tag,
<a>
. The anchor tag specifies the link name and styles you want to apply, such
as font style and size. The target="_blank
tag makes the URL open in a new tab.
For example, the following anchor tag displays the link name, My Company,
and opens http://www.mycompany.com
in a new tab:
<a href=" http://www.mycompany.com" target="_blank">My Company</a>
The following anchor tag applies a larger font and different color to the link name:
<a style="font-size:18px;font-family:comic sans ms,cursive;color:#FF0000"
href=" http://www.mycompany.com" target="_blank">My Company</a>
You can put multiple anchor tags in a single rich text field. For example, the follow anchor tags display two link names as a field's default value:
<a href=" https://www.ibm.com" target="_blank">Link to IBM</a>
<a href=" https://www.ibm.com/support/knowledgecenter/SSFUEU_8.0.0/main/welcome.html" target="_blank">Link to IBM Knowledge Center</a>
Because you are using the rich text display type rather than the URL display type, the system does not check whether the URL is valid.
You can add fields that use the rich text display type for link names to all view types. However, on Filtered List and Grid views the link name is displayed above a glasses icon. Clicking the icon opens a window that contains the link.
Procedure
What to do next
Create objects and use the new field. Since the URL is specified as a default value, the field does not display on existing object instances.