#strakzz

1 messages · Page 1 of 1 (latest)

night flameBOT
thin dust
#

Hi, is this Payment Element?

iron shard
thin dust
#

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()?

iron shard
#

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',
    },
  },
});```
thin dust
#

Ah that API only updates the option, it doesn't pass value into the AddressElement

iron shard
#

Ah I got it. Thank you for your time. So, It's mean there are no way to expand that section programmatically ?

thin dust
#

Yeah I think so

iron shard
#

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.

thin dust
#

That' not customization, I think