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
NIKHIL_SFDCNIKHIL_SFDC 

RegEx validation for numeric value only

I have one text field.
I want a RegEx validation so that user only will be able to fill numeric value (no any Character nor any special symbol).

@anilbathula@@anilbathula@
Hi

Try this formula :-

NOT(REGEX(Ur_fieldname__c , "[0-9]{3}"))
In flower braces give the limit how many numbers you want to enter exactly.i have given 3 numbers.
Arunkumar.RArunkumar.R

Hi Nikhi,

 

Use this below validation rule to accept only numeric value,

 

NOT(REGEX( Name ,"^[a-z A-Z]*$"))

 

Where Name is your Field Name.

 

Mark this solution if you found as Best and give kudos...

 

Thanks and Regards,

Arunkumar | Salesforce Certified Developer

Fabio Costa 21Fabio Costa 21
NOT(REGEX( Name ,"^[a-z A-Z]*$")) has not worked for me.
See the prints:
User-added imageUser-added image