#Jinx
1 messages · Page 1 of 1 (latest)
When you say "display custom input fields", what do you mean? Do you want it to prefill the email?
Full name and address should already be collecting by the address element in shipping mode, can you share what you're seeing currently and how you initializing the address element?
That's a screenshot from my application
I'm just curious if it can display another customer input that collects an email address
Oh I see, you're asking if you can collect email address additionally, in another field similar to the existing full name field
Is that right?
Yeah exactly!
At this time that's not possible -- the Payment Element collects email address automatically for Payment Method types that require it, but I can add your feedback about this as it's something we've heard before
Gotcha
Appreciate it!
Is there anyway to make the payment element require to collect email addresses?
Not currently, no. Since the Address Element works in concert with the Payment Element this is more or less the same issue. We're looking at what we can do to offer more flexibility here 🙂
Ahh I see
One more question, do you know of any public document I can use to copy & paste stripes element CSS onto my own input?
We don't have that publicly documented though, but you can inspect a relevant element and use something like Chrome's "copy styles" in the dev tools for a starting point:
https://daily-dev-tips.com/posts/chrome-copy-all-css-for-an-element/