You need to sign in to do that
Don't have an account?
SA
validation rule to include only number comma and space
Hi,
I created a custom field TEST_User_ID__c. User should only enter number (0-9), Space and Comma. Can someone please help with validation rule using Regex.
Thank you
I created a custom field TEST_User_ID__c. User should only enter number (0-9), Space and Comma. Can someone please help with validation rule using Regex.
Thank you
The below Regex worked for me .Try the below code in your validation rule:
Please try this. Use the insert field button to select the field API Name of the TEST_User_ID field.
Please let us know if this helps.
Try This code.
AND(
NOT(ISBLANK( TEST_User_ID__c )),
NOT( REGEX( SUBSTITUTE( TEST_User_ID__c , " ", "") ,"^[0-9,.*]+$"))
)
Thanks
Akshay