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
Aaliya YusufzaiAaliya Yusufzai 

Create a validation rule for a number field

I'm looking at creating a validation rule to be mandatory only if the record was created today. Any help on creating this would be great.
Amit Chaudhary 8Amit Chaudhary 8
Please try below validation rule
AND(
DATEVALUE(CreatedDate) = TODAY(),
ISBLANK(Field_Name__c)
)

Let us know if this will help you
 
Karthi XaviKarthi Xavi
Hello Aaliya,
Try this,

DATEVALUE(CreatedDate) = Today() && Your_NumberField__c=Null)