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
SFDC_DevloperSFDC_Devloper 

Need Help For Validation Rule

Hi All,

  I am cerating new record(ISNEW()),here I have one number field(field is empty) in this when i trying perform any actions it will through error otherwise it will won't through any error.

 
PratikPratik (Salesforce Developers) 
Hi,

Here is the Validation rule:

AND(ISNEW(), ISBLANK(numbr__c) )

Put your fieldname in place of numbr__c.

The above rule will check if the Record is new (on record creation & not on update) and the numbr__c field is blank then it will throw error message.

Thanks,
Pratik

P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.