SetAddressCityStateZone

Sets the name of the field that contains the zone for the City and State part of the address.

Member of namespace

HandwritingRecognition

Syntax

bool SetAddressCityStateZone (string param)

Parameters

param: The string value representing name of the field that contains the zone for the City and State part of the address. Smart parameters are supported.

Returns

True always.

Level

Field.

Details

Sets the name of the field that contains the zone for the City and State part of the address. This is required when recognizing fields of type "Address" and multiple zones are used to recognize the address.

Important: In order to get address recognition results, the postal database path must be set via the SetPostalDatabase action. Additionally, the postal database must be updated monthly.
Example:

Field level ruleset (can be run either when entering a field, Open node, or leaving a field, Close node):

SetFieldType(8)
SetAddressCityStateZone("CityStateField")
SetAddressZipZone("ZipCodeField")

The example above sets the field type to address. The field containing the City, State zone is configured. Finally the field containing the Zip zones is set.

Page level ruleset (must be run after ALL fields to be recognized have been configured, either at the Close of the page, or in a separate subsequent ruleset).
Recognize()

This ruleset performs recognition of the configured fields.