#yuriancelmo_code

1 messages ยท Page 1 of 1 (latest)

zealous lionBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1252623582412931084

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

sly oyster
#

No you cannot do this, because not all addresses use cities

#

If you have specified field structure requirements, you likely will need to use your own address form

stone siren
#

Hmm .. gotcha , and would you have a link to how can I configure my own address form?

naive jay
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. Building your own form would be up to you, and dependent on how you're building your page.

While you can't force particular fields in the Address Element to be provided, you can listen to the change Events that it emits:
https://docs.stripe.com/js/element/events/on_change?type=addressElement

I believe that will allow you to check whether the Address Element has been provided with a city, so you can surface a message or block form submission if that fits your flow.