#strakzz
1 messages · Page 1 of 1 (latest)
Hi, is this Payment Element?
No, This is AddressElement
I see. And you are looking for a way to programmatically expand the section? Don't think that's possible but have you tried the addressElement.update()?
I tried using "addressElement.update()", but I don't know exactly what parameters and options are pass to the method.
can you help me with that ?
var addressElement = elements.getElement('address');
addressElement.update({
validation: {
phone: {
required: 'never',
},
},
});```
Ah that API only updates the option, it doesn't pass value into the AddressElement
Ah I got it. Thank you for your time. So, It's mean there are no way to expand that section programmatically ?
Yeah I think so
One more Question,
Is there a way to expand automatically that section, when an user have entered at least one character ? currently it's expanding at least 3 characters are entered.
That' not customization, I think