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

Validation rule

I have a lookup field named xyz on contact object which has 3 text fields in it.

I want to make that field required before we create a new contact.

can anybody give me the validation rule for this scenario... Thx in advance  

Steve :-/Steve :-/

 PS.  You owe me a beer!

Chamil MadusankaChamil Madusanka



I think this can be done without using a custom validation rule. Please follow these steps;

  1. Go to the page layout of Contact object
  2. Edit page layout
  3. find out your lookup field
  4. click properties of your lookup field
  5. select required and click OK
  6. save the page layout
  7. Now you can feel your requirement :)

Now the validation will be there


If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.


chamil's blog


Steve :-/Steve :-/

Are you all set with this or do you still need help?  If you're all set what was the solution?