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

Number less than 25 entered into a number field

A number field named with the following api name 

if a user enters a value of 24 or less, that when a user saves the record, a numerical value of 25 should be saved automatically. 

However if the users enters a value equal to or greater than 25, then the validation rule should NOT apply. 

Is this possible to do with a validation rule? Thank you

AnkaiahAnkaiah (Salesforce Developers) 
try with below rule.

If this helps, Please mark it as best answer.

Deepa K 27Deepa K 27
Try this one.

OR( ISBLANK( Phone__c ), 
                LEN( Phone__c )  > 25,
             NOT( ISNUMBER(Phone__c) ) 

Let me know if this works.