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
Devadarsi Devasis 2Devadarsi Devasis 2 

Can anyone help me in executing this action?

Order Remarks filed is mandatary if the order stage is Cancelled else system should display the error message “Order Remarks filed is mandatary, Please enter the remarks”.
Here stage is a picklist having a value "Cancelled"?
VinayVinay (Salesforce Developers) 
Hi Devadarsi,

Are you looking for a validation rule? 

Thanks,
Devadarsi Devasis 2Devadarsi Devasis 2
Hi Vinay,
Yes I am looking for validation rule
VinayVinay (Salesforce Developers) 
Try below snippet.
 
AND(ISPICKVAL(Stage, 'Cancelled'), ISBLANK(OrderRemarks__c))

Please mark as Best Answer if above information was helpful so that it can help others in the future.

Thanks,
Vinay Kumar