+ 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)