I have Employee Custom Object who will be having his/her own User credentials, so I want to add Lookup of User on Employee Page Layout which should be compulsory / required field.
Attribution to: Nilesh
Possible Suggestion/Solution #1
What about using a Validation Rule.
Attribution to: Michael Gill
Possible Suggestion/Solution #2
In your Employee Custom Object layout, mark the User lookup field as required. This will display a red bar to show the end user that the field is required and will stop the record from being saved until the User is selected.
You get the dialog to set the required flag in the layout editor when you mouse over the field and click on the spanner icon:
Attribution to: Keith C
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/33164