iValidateSubmittedAddressForAddressBook - Solution Sites Routine

This function determines whether an address supplied while working in the address book is valid, returning zero (0) if so, and one (1) otherwise.

Definition

Function iValidateSubmittedAddressForAddressBook(
  listFlds,
  dictFldVals,
  dictFldErrs,
  byVal sAction,
  byRef sAddrID,
  rsAddr)

Defined in File

newaddr.asp

Routines Called

bIsAddressNameUnique

GetFieldsErrorDictionary

IsZipCodeValid

LookupRegion

Called By

SetupAddressForm

Remarks

Insert your specific address validation logic inside this function.

The default implementation supports basic validation for international addresses:

  • Ensures that all required fields contain data.
  • Ensures that the country/region field is a required field for countries/regions that have countries/regions defined.
  • Accepts country/region name or country/region code as input; validates them against the country/region table.
  • Expands country/region code to country/region name on subsequent renderings of address form.
  • Performs zip code validation for US addresses.

For more conceptual information about forms processing, see Forms Processing for Solution Sites.

Copyright © 2005 Microsoft Corporation.
All rights reserved.