Salesforce Change Text Field Length

When you are working with the text field, there is a field present from which we can set or change the length of the text that the user can enter.

In this Salesforce tutorial, I will show you how to change the text field length. The text field permits users to enter any combination of letters and numbers.

If you want to learn the whole topic in Salesforce, you have come to the right place.

How to Change Text Field Length in Salesforce

Here, we will learn how to change text field length in Salesforce.

For example, there is a company that uses Salesforce to manage its Sales and marketing efforts. There are Lead custom objects in Salesforce that represent possible customers. Every lead has different fields, and these fields involve text. The lead description is a text field used to hold additional information about the lead that was received.

Sometimes, our Salesforce team realizes that the existing lead field description field length of 50 is not sufficient to provide detailed information about the lead source. The sales and marketing team receives lengthy descriptions that exceed the current length limit.

To resolve this issue we decided to increase the length of the lead description field to 255 characters to permit more detailed information to be stored.

Here are the following steps:

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

How to change the text field length in Salesforce

2. Here we enter the lead in the search box and select the lead object.

How to change the text field length in Salesforce Lightning

3. The lead object page is open. On the left side of the lead object page, we can see the Fields & Relationships option. Click on the Fields and Relationship option.

Change the text field length in Salesforce

4. The leads Fields and Relationships page opens. Under this page, we can see that a Lead Source Description text field type has already been created. To change the length of the text field type of lead source description we click on this lead source description field.

Change the text field length in Salesforce Lightning

5. Here, we can see the details related to the Lead source description, and we want to edit this detail by simply clicking on the edit button.

See also  How to Delete Master-Detail Relationship in Salesforce
Salesforce change the text field length

6. Here we click on the change field type to change the length of the text field type.

Salesforce Lightning change the text field length

7. The custom field type page is open here we are again selecting the text field and clicking on the next button.

How to change text field length in Salesforce

8. The lead custom field lead source description page opens. Here, we can see the length already filled is 50, which is not sufficient to hilding detailed information about the lead source. The sales and marketing team receives lengthy descriptions that exceed the current length limit.

Change text field length in Salesforce

9. To resolve this issue, we decided to increase the length of the lead description field to 255 characters and click on the save button.

Change text field length in Salesforce Lightning

10. The Lead Source Description field is again shown under the Fields and Relationships page, and this lead source description is shown with changing data type as text(255).

Salesforce change text field length

In this way, we understand how to change the text field type length in Salesforce Lightning. 

Conclusion:

This is a simple method for quickly changing the text field length in Salesforce. I have also explained all the steps for changing the text field length in Salesforce. I hope you found this article helpful.

You may like to read: