0

i am trying to validate the contact no. it must be started with 7,8,9 only.

Ex: 9493654336==> NO ERROR 6754294763==> ERROR

Can anyone please help me out

2 Answers 2

5

You can use this formula in Validation Rule.

NOT(BEGINS(Field, '7') || BEGINS(Field, '8') || BEGINS(Field, '9'))

Where field is of type Phone.

2
0
NOT( REGEX(  SObject,"(\\D[7-9]{1}\\D?[0-9]{2}\\D?)[\\s][0-9]{3}-[0-9]{4}"))

Hi friends this validation is perfect for this scenario

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .