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
Priyanshu Singh 5Priyanshu Singh 5 

hello, I got a question on validation rule. My question is i have a text field with 10 character i want to enter data 'abcd123ABC' this form so how can we do it with validation rule. Please help me

Best Answer chosen by Priyanshu Singh 5
Roman RiabenskyiRoman Riabenskyi
Hello!
This validation rule worked for me:
NOT(REGEX(your_field, "[a-z]{4}[0-9]{3}[A-Z]{3}"))

All Answers

Roman RiabenskyiRoman Riabenskyi
Hello!
This validation rule worked for me:
NOT(REGEX(your_field, "[a-z]{4}[0-9]{3}[A-Z]{3}"))
This was selected as the best answer
Priyanshu Singh 5Priyanshu Singh 5
thanks  Roman Riabenskyi