Salesforce Phone Data Type

Salesforce Phone Data Type is used to enter any phone number, and this phone field type automatically formats the text as a phone number. We can use the phone field for typing the account number, product number, etc.

Recently, I worked in a Salesforce company in America. While working here, I received a task to enter the phone numbers of the new employees. To fulfill this requirement, I used the phone Field Type.

Let’s discuss in more detail how to create the phone field type in Salesforce Lightning and Salesforce Classic.

Phone field type in Salesforce

The phone field type is defined as a field type that permits the users to enter any phone number, and the character limit of the phone number field is up to 40. Salesforce automatically formats this phone field type as a phone number.

We can create the phone field on any type of object because the phone number is useful for calling employees by simply picking it from the phone field.

For example, there is a contact object that stores important information related to a person’s account number, name, website, and department. Now, we want to create a phone field under this contact object, which helps the employer contact the person they want by simply using their phone number from the phone field type.

Now, let’s move further and see how to create the phone field type in Salesforce Lightning and Salesforce Classic.

See also  How to rename the global picklist value in Salesforce

Read How to Set Default Value For Phone Number Field in Salesforce

How to create a phone field type in Salesforce Lightning

Here we are creating the phone field type in Salesforce Lightning.

Consider a scenario: We are using the contact object. Inside this contact object, we want to add the phone number field as a phone field, which is used for calling the employees by simply picking the phone number from the phone field.

The users can enter any phone number inside the phone number fields and the character limit of the phone number field is up to 40.

Here are the following steps:

1. Go to the Gear icon –> Click on the Setup option –> Select the Object Manager tab.

Phone data type in Salesforce

2. Enter the contact object in the search box. The contact object comes at the top; click on the contact object.

Salesforce Phone Data Type

3. Click on the Fields and Relationships option that is present under the details section.

Create a phone field in Salesforce

4. Here, we want to create a new field. So, for this, click on the New button.

Create a phone field type in Salesforce Lightning

5. Here, we are selecting the Salesforce phone data type checkbox that permits the user to enter any phone number.

Salesforce create a phone field

6. Now enter the details; first, fill in the Field Label as Phone Number, and then fill in the field name by simply clicking on it; the field name will be automatically filled. Click on the next button.

Phone field Salesforce

7. Now establish field-level security. Now select the profiles to which we want to grant edit access to this field via field-level security. Click on the Next button.

How to create phone field in Salesforce

8. Now, add the custom field to the page layoutSelect the page layout that should include this field. This field will be added as the last field in the first 2-column section of this page layout. Click on the save button.

See also  How to Reset or Restart the Auto Number field in Salesforce
Salesforce phone field

9. Click on the app launcher and enter sales in the search box. Select sales, the sales page is open and then select the contact object.

The contact object record page is open. There is a details section, and under this section, we can see that the phone field type is created. We can enter the phone number related to the contact in the phone field.

Create phone field in Salesforce

In this way, we understand how to create the phone field type in Salesforce Lightning. Let’s Proceed further and learn how to create the phone field type in Salesforce Classic.

Read How to Create Number Field Type in Salesforce

How to create a phone field type in Salesforce Classic

Here we are creating the phone field type in Salesforce Classic.

Consider a scenario in which we are using the object inside the contract object. We want to add the contractor phone number field as a phone field.

Here are the following steps:

1. Click on the Profile Picture –> Click on the Switch to Salesforce Classic option –> Select the Setup option.

How to create a phone field in Salesforce

2. Enter the lead in the Quick Find Box. Click on the contract drop-down menu. The drop-down list is open; under this drop-down list, there is a field option. Click on the Fields option.

create a phone field in Salesforce

3. The contract custom field page is open. Scroll to the bottom of the page. There is a Contract Custom Fields & Relationships section. For creating the new field click on the new button.

Salesforce create phone field

4. Here, we are selecting the salesforce phone data type checkbox. Click on the next button.

How to create phone field Salesforce

5. Now enter the details; first, fill in the Field Label as Contractor Phone Number and then fill in the field name. Click on the next button.

Create phone field in Salesforce

6. Now establish the field-level security. Select the profiles to which we want to grant edit access to this field via field-level security. Click on the next button.

Salesforce create phone field

7. Now, add the custom field to the page layout. Select the page layout that should include this field. It will be added as the last field in the first two-column section of this page layout. Click on the save button.

How to create the phone field in Salesforce

So, with this, we have learned how to create the phone field type in Salesforce Classic.

See also  How to Select Mask Type in Text Encrypted Field in Salesforce

Conclusion:

I hope you got an idea of how to create a phone field in Salesforce also, I have explained step by step how to create the text field type in Salesforce Lightning and in Salesforce Classic.

You may like to read: