#.ishkanan

1 messages ยท Page 1 of 1 (latest)

sweet pineBOT
thorn rivet
#

๐Ÿ‘‹ How can I help?

ivory moth
#

Hi! We're using the Address Element for auto-complete. We saw in the JS Docs that there is a way to force "phone" to always be provided. We were wondering if there was a way to force "city" or any of the address fields?

thorn rivet
#

Since Address Element is to collect address, address fields will always be required to fill up

ivory moth
#

That's not the behaviour we observed. For Hong Kong addresses, it does not enforce "District" which maps to "city" field.

thorn rivet
#

By default, the Address Element will collect all the necessary information needed for an address of a country. Not all fields will be required given the country

#

I'm afraid Address Element doesn't support forcing the address fields to be collected all the time. It only supports phone field

ivory moth
#

That's what we thought ๐Ÿ™‚ No problem, thank you for confirming!