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
IvxampleIvxample 

How do I make the first name mandatory in Contact?

I want to make the first name field mandatory for a contact. As this is not an out of the box option with Salesforce, is there any way that I can set this up without creating a validation rule?

 

Thanks

Ivxample

Navatar_DbSupNavatar_DbSup

Hi,

 

Without validation rule it is not possible to make the first name as mandatory field. You can create a custom page for contact and apply the javascript validation.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

hemantgarghemantgarg

You can put the check for FIrstName in a before insert trigger and use addError to show the error message, It could be a way of validation.