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
SamIAMSamIAM 

How do you change Last Name to not be a Required Field and Select another Table Key?

How do you change Last Name to not be a Required Field and Select another Table Key?

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

The primary "name" field of each object is always required, and may not be changed. Account Name, Last Name (lead, contact), Opportunity Name, Product Name, Pricebook Name, etc... all are required by the system. Some objects use an auto-number field, in which case that will be the required field (it will be read-only). Cases are a notable example of this.

All Answers

Chamil MadusankaChamil Madusanka

Please elaborate your problem.

_Prasu__Prasu_

You cannot remove that required validation for the Lastname field. Second part of your query is unclear.

sfdcfoxsfdcfox

The primary "name" field of each object is always required, and may not be changed. Account Name, Last Name (lead, contact), Opportunity Name, Product Name, Pricebook Name, etc... all are required by the system. Some objects use an auto-number field, in which case that will be the required field (it will be read-only). Cases are a notable example of this.

This was selected as the best answer
wellthatisagoodideawellthatisagoodidea
What about changing to a People account and renaming Last Name to Company?
Sridhar BonagiriSridhar Bonagiri

Hi,

 

If you are looking for Lastname field in User object , it is not possible to make it non-mandatory.

 

I didnot get 'Select another Table Key?'