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
Mad DeveloperMad Developer 

How to write get the first name and last name as a single Name into Name field?

Hi

 

I have 2 fields named firstname and lastname and I need to get them as a single name and to the name field.

 

Can anyone suggest a way for this?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
harsha__charsha__c

hey, just use a formula field which combines the both names.


1. create a formula field naming it as Name.

 

2. and name = firstname + lastname

All Answers

harsha__charsha__c

hey, just use a formula field which combines the both names.


1. create a formula field naming it as Name.

 

2. and name = firstname + lastname

This was selected as the best answer
Mad DeveloperMad Developer

Thanks Harsha

ShahTheTrainerShahTheTrainer

Name is a standard field with "Text" (or) "Auto Number" Data type, i.e. input Field in first case, AUTONUMBERED field in second case.  I am wondering how could you do FORMULA with standard Name field. please can you share it

harsha__charsha__c

Hi Shah, 

 

FYI. the formula field referred here is a custom one.