Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleSetting Options
var fields = [
				{ element: "iAddress1", field: "Address1", mode: so.fieldMode.SEARCH | so.fieldMode.POPULATE },
				.
				.
				.
				{ element: "iCountry", field: "Country", mode: so.fieldMode.POPULATE }
			 ];


var CustomKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
var options = { key: CustomKey, setBiasToIP: true };
var DOTSGlobalAddressComplete = new so.Address(fields, options);

*Note, the true/false values are boolean values and not strings.


Step 3 - Set Options: (B) Locality Search Type

...

Code Block
languagexml
titleSetting Options
var fields = [
				{ element: "iAddress1", field: "Address1", mode: so.fieldMode.SEARCH | so.fieldMode.POPULATE },
				.
				.
				.
				{ element: "iCountry", field: "Country", mode: so.fieldMode.POPULATE }
			 ];


var CustomKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
var options = { key: CustomKey, setBiasToIP: true, DoPlace: true, SearchType: "Locality" };
var DOTSGlobalAddressComplete = new so.Address(fields, options);

*Note, the true/false values are boolean values and not strings.


Once you have the options set your form will now be activated to suggest addresses (or localities) as you type.

...