#gaurav8690
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.
- gaurav-address-element, 1 hour ago, 6 messages
Hello
Can we do any of the following for country dropdown on phone field for Address Elements?
Hide the country dropdown
OR
Disable with a default selection of “US”
Can we remove country dropdown from PaymentElement form, so that only post code is shown while collecting billing details?
Currently, if we set country to ‘never’ the other billing address fields never show up.```
Pulling your previous comments
For 1/ the only way to accomplish this would be to re-create Address Element which you likely don't want to do.
However, you could instead use the getValue() method (https://stripe.com/docs/js/elements_object/get_value_address_element) to be able to display them the Address for confirmation before actually submitting if you want
You should be able to hide the country dropdown via allowedCountries: https://stripe.com/docs/js/elements_object/create_address_element#address_element_create-options-allowedCountries
We do not have a review page. So, trying to show the newly added address in the same page. Showing it in the same page will make it a faster one page checkout.
Would be great if you could create a feature request internally, so that contacts/addresses can be updated.
The above link you have sent is for hiding countries dropdown on the address form and not the countries dropdown next to phone number/billing address.