iValidateSubmittedAddress - Solution Sites Routine
This function determines whether an address supplied during a purchase is valid, returning zero (0) if so, and one (1) otherwise.
Definition
Function iValidateSubmittedAddress(
listFlds,
dictFldVals,
dictFldErrs)
Defined in File
Routines Called
Called By
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.