#chuchutrain7580_docs
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1328505632973652028
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! No, I don't believe there's any way to set a length limit. Can you tell me more about why you want a limit on that field?
@livid ravine You around?
hello, i am around sorry! i didn't get the notfication
The character limit is important to us because we send the shipping address to an external vendor where they only accept a name of certain character limits (e.g. 255 characters)
If they reject the shipping address, it means that the order that the customer has been placed with us will not be shipped
That's something you'll need to handle on your end. You'll either need to truncate or otherwise reject/transform the name value to fit under that limit on your end, or you'll need to switch to your own form instead of using the Address Element.
Thank you for confirming, and yes that's an option that we will look into. 
You can also listen for change events from the Address Element and throw up a warning/error when they put in something too long: https://docs.stripe.com/js/element/input_validation
Combine that with this: https://docs.stripe.com/js/elements_object/get_value_address_element
Great, thanks for those links. Can I also get a confirmation that we can't 'inject' an error message to the individual fields in the Address Element?
Correct.