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
kjunkjun 

Number less than 25 entered into a number field

A number field named with the following api name 
Linguistics__c

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.
 
AND(NOT(ISBLANK(Linguistics__c)),LEN(Text((Linguistics__c)))<=24)

If this helps, Please mark it as best answer.

Thanks!!
 
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.