Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is a generic question.

I was trying to make the first name and last name field of contact mandatory. Currently only the first name is mandatory.

I tried doing this from the page layout. Now I saw that, only the name field was visible there(not first name and last name). So I want to know is this usually the case? Or is is it possible to make the individual first name and last name mandatory from the page layout?

share|improve this question
if this is the case then I suggest create validation rule for first name – Ratan Jan 4 at 9:29
welcome to the wonderland of salesforce.. :-) – Vamsi Krishna Jan 4 at 9:34
I think you should seriously consider reading this:… – Mark Jan 4 at 15:06
up vote 3 down vote accepted

Because this is a standard field, I don't think there's a lot you can do with this with respect to making them required fields.

A workaround would be to create a validation rule that checks whether or not both FirstName and LastName are filled.

The condition might be something like the following:

ISBLANK(FirstName) || ISBLANK(LastName)

This would return true if FirstName or LastName is blank.

share|improve this answer

I suggest create a validation rule for first name.

Make first name required using validation rule enter image description here

share|improve this answer

You need to create validation rule from

  1. Setup | Customize | Contact | Validation Rules | New
  2. Enter Rule Name and Description
  3. Enter formula code ISBLANK( FirstName )
  4. Enter the error message.
  5. Select the Location where the error will be displayed.
  6. Click Save.
share|improve this answer

I've not tested this but thought I'd suggest for you to try out (nor am I recommending it as a solution).

  1. Change field level security of the first name and last name so they are hidden from all users.
  2. Create 2 custom fields and add them to the page with the required status.
  3. Create workflow rules to populate the standard fields with the custom field values.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.