#noorbl
1 messages · Page 1 of 1 (latest)
Hello 👋
Have you read these docs? it explains how you can require phone field in the address element
https://stripe.com/docs/elements/address-element/collect-addresses?platform=web&client=react#other-options
im read but i dont know where to add
mode: 'shipping',
allowedCountries: ['US'],
blockPoBox: true,
=> fields: {
phone: 'always',
},
validation: {
phone: {
required: 'never',
},
},
}} />```
wait to test
stay here
=> fields: {
phone: 'always',
},
=> this text rquire?
required*
no that's just me pointing out what you need to configure
that's configuring validation, if you want to validate the phone number format then you can remove that part.
