Monday, March 22, 2010

Regular expression form validation

I have a form field that I currently validate using
%26lt;cfinput pattern=''^([a-zA-Z]{2}$'' validate=''regular_expression''
Type=''text'' required=''yes''%26gt; (other attributes also including
name, etc). Anyway, this validates that the input must be 2
letters, but know I need to validate the field so that ''NA'' is
allowed. Is there a way to do that?

No comments:

Post a Comment