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
alexander yurpolskyalexander yurpolsky 

custome object name field

Hello  
so I create  custome object called employees now when I created the object I decided to call the name field employee name its type is text. I also created  two custom field  first name and last name.  so I have the employee name field which was generated by  salesforce and i have two other fields first name and last name now is there a way I can combine the first name and  last name and put it automatically in the name field?
 
naveen kumar 657naveen kumar 657
Using formula fields we have we can concatinate two fields like {ull Name = LastName & ", " & FirstName
naveen kumar 657naveen kumar 657

Using formula fields we have we can concatinate two fields like full Name = LastName & ", " & FirstName
alexander yurpolskyalexander yurpolsky
Unfortunately I get an error

That's my formula:
Name =  EmployeeFirstName__c & " " &  EmployeeLastName__c

Tht's the error i get:
Formula result is data type (Text), incompatible with expected data type (true or false)

 
mritzimritzi
You can convert Standard 'Name' field to an Auto Number and leave it at that, and can continue using your custom fields for First Name & Last Name.

Mark this as Best Answer, if this resolves your problem.