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
Shridhar H AShridhar H A 

Hi Guys, I Have a requiement.

I have a User A B C and D...i have a field Email in all User...my requirment is 'The field Email shoud be mandatory in Both A and B users but not for Users C and D,,? how to achieve this ?
Best Answer chosen by Shridhar H A
Akhil AnilAkhil Anil
Validation rule is the only way to make a field required based on different users.

Kindly mark it as an answer if that answers your question !

All Answers

Akhil AnilAkhil Anil
This can be simply achieved by using a validation rule like the below
 
AND(
ISBLANK(Email),
$User.Username <> "C username here",
$User.Username <> "D username here"
)

It will ensure that the validation is excluded for the users mentioned in the above formula.
Shridhar H AShridhar H A
is der any other way ?
 
Akhil AnilAkhil Anil
Validation rule is the only way to make a field required based on different users.

Kindly mark it as an answer if that answers your question !
This was selected as the best answer