Search.../

filter

Sets or gets the filter of the address input.

Description

The filter property restricts address input suggestions to addresses within the country specified in the AddressFilter object. Countries must be specified using ISO_3166country codes.

Type:

AddressFilterRead & Write
NAME
TYPE
DESCRIPTION
country
string

ISO_3166 country code.

Was this helpful?

Get an address input's filter

Copy Code
1let filter = $w("#myAddressInput").filter;
2
3/*
4 * {
5 * "country": "AUS" // Australia
6 * }
7 */
Set an address input's filter

Copy Code
1let filter = {
2 "country": "AUS" // Australia
3};
4
5$w("#myAddressInput").filter = filter;