Skip to main content
Hi,

 

Is it possible to apply one validation rule on multiple fields?

 

I wanted to avoid numbers and special characters in two fields  -- name and last name.

 

  NOT(REGEX(name || last_name_c,"^[a-z A-Z]*+"))

 

is this valid?

 

  - Thanks in advance -
답변 2개
  1. 2012년 8월 2일 오전 8:20
    If you want to apply the validation rule for multiple field try like this:-

     

    OR(

     

    AND(NOT(REGEX( First name ,"^[a-z + A-Z]*$"))),

     

    AND(NOT(REGEX( Last name ,"^[a-z + A-Z]*$"))))