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

status can not be completed, Validation rule

Status(Pick list field) cannot be completed(Pick list value) if  "count" (Number field) > 0

Danish HodaDanish Hoda
Hi There,
If I undertand your requirement correctly, you have 
  • a number field - Number__c
  • a picklist field - Status__c
  • you want a validation rule to fire when Status__c == 'Completed' AND Number__c > 0
You can create Validation rue as below:
TEXT(Status__c) = 'Completed',
Number__c > 0