function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
krish99krish99 

Combine two Text Fields into Single Text Field

Hi,

          I have 2 text fields FirstName__c, LastName__c i want to combine these Two Fields into Name__c how can i do it. here Name__c also a text field
Best Answer chosen by krish99
Nitin SehgalNitin Sehgal
You can create a formula field which will return the combination of FirstName__c and LastName__c. put the below formula in formula field:

ObjectName.FirstName__c &" "& ObjectName.LastName__c

Regards,
Nitin

All Answers

Nitin SehgalNitin Sehgal
You can create a formula field which will return the combination of FirstName__c and LastName__c. put the below formula in formula field:

ObjectName.FirstName__c &" "& ObjectName.LastName__c

Regards,
Nitin
This was selected as the best answer
krish99krish99
@nitin,

            I have to create the Name__c as a formulae field...??? Now I declare Name__c as text field.
Nitin SehgalNitin Sehgal
Yes, please. Make Name__c field as a formula field and use the above discussed formula there. Name__c will always return the combination of first name and last name.
Kylee GarretsonKylee Garretson
We have reached our limit on custom fields so I am trying to combine two text fields into one and delete the other - is there a way to do this without requiring a whole new field?