Salesforce Unique Text Field

The unique text field refers to the field that applies the uniqueness among the values that we enter in the field and that stores it as a record in a specific object. When we enter the value in the field, we make sure that no two records in that object can have the same value in this record.

If you want to learn the process of how to make text field type unique in Salesforce you have come to the right place.

How to Make the Text Field Unique in Salesforce

Here, we will learn how to make the text field type unique in Salesforce.

Consider a scenario: Suppose there is a university that uses Salesforce to manage student records. In this university, there are academic teams that want to ensure that every student has a unique student ID for tracking academic processes and enrollments.

The University has a custom object called student, and they want to make the Student ID field unique.

Here are the following steps:

1. Login into your Salesforce account, Go to Gear Icon, and Select Setup.

How to make the text field type unique in Salesforce

2. Click on the Object Manager tab that is present on the nav bar.

How to make the text field type unique in Salesforce Lightning

3. Enter the Student in the search box and select the student object.

Make the text field type unique in Salesforce

4. The student object page is open. On the left side of the Student object page, we can see the Fields & Relationships option. Click on the Fields & Relationship option.

Make the text field type unique in Salesforce Lightning

5. The student Fields and Relationships page opens. Under this page, we can see that a Student ID text field type has already been created. To make the text field type unique, click on the Student ID text field type field.

See also  How to Set Visible Lines for Text Area Long Field in Salesforce
Salesforce make the text field type unique

6. The Student custom field Student ID page is open. We want to edit this field information to make this text field type unique. Click on the edit button.

Salesforce Lightning make the text field type unique

7. Now, we can edit the value on the student ID page by scrolling to the bottom of the page. We can see the general options section, and there is a unique checkbox option. To make our field unique we click on the unique checkbox. Click on the save button.

How to make text field type unique in Salesforce

8. We can see that our Student ID field is unique, and under the general options section, we can see that our unique checkbox is checked and that It does not allow duplicate values after making the text field.

How to make text field type unique in Salesforce Lightning

In this way, we understand how to make the text field type unique in Salesforce. 

Conclusion:

I hope you read the entire article and get a clear idea of how to make the text field type unique in Salesforce. I have also explained all the steps of making the text field type unique in Salesforce.

You may like to read