+ 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.