#ziwengames-address-element
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ziwen-coupon-invoice, 6 days ago, 4 messages
Hi 👋
This isn't something you can configure presently with the Address Element
I can raise it as a feature request though
oh ok thanks for letting me know
A colleague just informed me of a sneaky work-around for the Address Elemenet auto-expansion
You can provide empty strings ' ' for the default values when you create an AddressElement: https://stripe.com/docs/js/elements_object/create_address_element#address_element_create-options-defaultValues
ooo ok let me try that right now
Do you know which keys I should set to " "? I've tried for line2 and postal_code but it doesn't fully expand all the fields.
I would do it for all address fields
<AddressElement id="address-element" options={{ mode: 'billing', defaultValues: { address: { line1: ' ', line2: ' ', country: ' ', city: ' ', state: ' ', postal_code: ' ' } } }} />
Didn't work :/
Sorry, I can and will still file the feature request
I have filed the feature request. If you would like to be notified of any change in this respect please write in to Support here https://support.stripe.com/contact