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
chaitanya srikakulapuchaitanya srikakulapu 

i have a field like PF number, for the I want to validate PF number eg like this formatte (HR/GGN/31934/18805) please tell me the validation rule for this.

Best Answer chosen by chaitanya srikakulapu
CharuDuttCharuDutt
Hii Chaitanya
Try Below  Validation
AND(NOT(ISBLANK(PF_Number__c)),NOT(REGEX( PF_Number__c , "[A-Z]{2}/[A-Z]{3}/[0-9]{5}/[0-9]{5}")))
Please Mark It As Best Asnwer If It Helps
Thank You! 

All Answers

CharuDuttCharuDutt
Hii Chaitanya
Try Below  Validation
AND(NOT(ISBLANK(PF_Number__c)),NOT(REGEX( PF_Number__c , "[A-Z]{2}/[A-Z]{3}/[0-9]{5}/[0-9]{5}")))
Please Mark It As Best Asnwer If It Helps
Thank You! 
This was selected as the best answer
chaitanya srikakulapuchaitanya srikakulapu
hi charudutt..,
Your validation rule is working.
thank u
Jagan PradhanJagan Pradhan
Check Latest Updated information on Technology news, Latest State and Central Government schemes in Hindi language at 
HindiBali.com (https://hindibali.com/ (http://hindibali.com))
Jagan PradhanJagan Pradhan
Just visit the site and download all types of latest PS2 Bios (https://ps2-bios.com/)