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
AbAb 

Validation Rule to allow modiifcation on certain condition

Hello,

How can i implement a validation rule to say that for below use case
On CustomObject1__c

The CustomTextField__c is modfiable only if 
  CustomNumber__c == 500 
     && current record.created by == User2

Thank you for Suggestion
Best Answer chosen by Ab
Deepali KulshresthaDeepali Kulshrestha
Hi Sandrine,

I have gone through your question. For the validation rule.
Please follow the below to achieve this:-

Validation--->

IF((   ISCHANGED(CustomTextField__c) ) && ( CustomNumber__c  <> 500) &&   (CreatedBy.Username  = 'User2'),true,false)


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com