CommonValAddress

Validates the address values first name, last name, street, city, state, zip code, and phone number.

Member of namespace:

MC_Validation

Syntax:

bool CommonValAddress(StrString)

Parameters

Comma-delimited String that contains a list of name with addresses to be validated.

Returns

False, if the action is not run at the Page level. Otherwise, True.

Level

Page level.

Details

This action validates the following address values:
  1. First Name: value can start with Ms, Mr, Miss, Dr salutations. The remaining values must be alphanumeric with no special characters. Punctuation is allowed only after the salutation.
  2. Last Name: same requirements as the first name.
  3. Street: alphanumeric, upper or lower case. Can include punctuation and the # character.
  4. City: characters from A to Z, upper or lower case, comma, period, space, and the & character.
  5. State: must be 2 alphanumeric characters.
  6. Zip Code: must be between 5 and 9 characters. This value is checked against the State value above.
  7. Phone Number: the area code is checked against the State and Zip Code values above.
Example:
CommonValAddress(Insured,4InsFNam,4InsLNam,7|AddStr,7|AddCity,
7|AddSta,7|AddZip)
or
CommonValAddress(Description,12plname,12pfname,13paddr1,13paddr2,
13padcit,13padsta,13padzip