In Salesforce CRM, we have many custom and standard data type fields that store records of specific data types. For example, the Text data type stores data of fields like name and address. In the same way, the URL field stores data from fields like website addresses and URL links. In this Salesforce tutorial, we will learn to create and use the Salesforce URL field.
The URL field allows users to enter a valid URL. When users click on the field, it navigates to the URL address in the next window.
Create a URL Field in Salesforce
In this example, I will create a URL field for the Case object records. Here, we will add the URL field to track the documentation related to the particular case.
To create the documentation, we can copy and paste the link for that document into the URL field of the Case record. The user can click on the URL field, and the URL of the documentation will open in a separate browser.
Follow the below steps to create a custom URL field type in a Salesforce object.
1. Navigate to the Setup page of Salesforce from the settings icon. On the Setup page, click on the Object Manager tab.

2. In the Object Manager, select the Object in which you want to create the URL field. In this example, we have selected the Case object.

3. In the Case setup window, click on Fields and Relationships.

4. In the next window, click on the New button.

5. From the list of data types, select the URL data type and click Next.

6. Enter the following details to configure the URL field.
- Enter the Field Label and Field Name.
- To make the URL field required, activate the Required field checkbox.
- If you want to set a default value or default URL for the custom URL field, then you can enter that URL (web link) in the Default Value field.
- Click the Next button.

7. To establish field-level security, select the profiles to which we want to grant access to the URL field. After this, click on the Next button.

8. Select the Page Layouts to make this URL field visible on those page layouts.
At last, click on the Save button.

9. Navigate to the object in which you created the URL field and create a new record or open an exciting record. There, you will see the URL field with the default value (URL link) that we entered.

In this way, we can create a URL field in Salesforce objects by following the above steps.
Conclusion
In this Salesforce blog, we have learned about the process of creating and setting up a custom URL field in a Salesforce object; you can follow the same process to create the URL field in any other standard or custom Salesforce object.
Along with this, we also learned to set the default value in a URL field and to make a URL field required in a Salesforce object record.
You may also like the following tutorials:
- Salesforce Remove Comma From Number Field
- Field-Level Security in Salesforce
- Custom Picklist and Multi-Select Picklist in Salesforce
I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us.