This is the validation rule I tried:
AND(
ISNEW() ,
(NOT( REGEX( Name , "[a-zA-Z0-9_+-]")))
)
However, it seems to fire every time a record is created, regardless of whether or not I think it meets the requirements. Does anyone have any idea on how I should be writing this validation rule? Thank you!
7 risposte
Try this, you need to specify how many of the characters to allow in the regex, so this one just requires one or more of the characters.
AND(
ISNEW() ,
NOT( REGEX( Name , "[a-zA-Z0-9_+-]+"))
)
--KC