CommonValAddress
Validates the address values first name, last name, street, city, state, zip code, and phone number.
Member of namespace:
MC_ValidationSyntax:
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:- 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.
- Last Name: same requirements as the first name.
- Street: alphanumeric, upper or lower case. Can include punctuation and the # character.
- City: characters from A to Z, upper or lower case, comma, period, space, and the & character.
- State: must be 2 alphanumeric characters.
- Zip Code: must be between 5 and 9 characters. This value is checked against the State value above.
- 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