#edgar-addresselement-errors

1 messages ยท Page 1 of 1 (latest)

pale tartanBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

violet jungle
#

๐Ÿ‘‹ @mortal isle do you have a bit more context to share?

mortal isle
#

sure! im testing address element with and without contacts, but im getting this errors

violet jungle
#

Can you share real text instead of pictures and the exact code

#

edgar-addresselement-errors

mortal isle
#

i understand i need to change things in the code but is there like a catch or onError that will handle this?

violet jungle
#

@mortal isle you might have missed my message/ask above

mortal isle
#

oh yeah sorry

#

so im trying to pass a value to the phone field in the form, this might be a dif qeustion, when i pass this value

 return {
    name: displayName || '',
    address: {
      line1: addressLine1,
      city,
      state,
      postal_code: zip,
      country,
    },
    phone:'+527333532826'
  };

i get this

#

i havent been able to find a phone format in the docs

violet jungle
#

the errors you are getting are not related to the format though

#

I don't think we offer a way to "catch" those

mortal isle
#

yes, i solved the errors lol thanks

#

i was missing a flag

violet jungle
#

The idea here is that you as the developer made an integration mistake so we don't offer a way to catch those

#

ah gotcha

mortal isle
#

i see, that makes sense ๐Ÿ‘

#

so regarding the format, is there a "standardized" way of passing the phone vlaue?

violet jungle
#

the best approach is with the country code

mortal isle
#

but in my example i passed the full number (valid in mexico, 10 digits plus country code) and although the country code did get set correctly, the valueis the full string (including country code)

violet jungle
#

it works fine for me locally

#
  'address',
  {
    mode: 'billing',
    defaultValues: {
      phone: '+527333532826',
    },
    fields: {
      phone: 'always',
    },
  }
);```
#

Does ^ work?

mortal isle
#

testing

pale tartanBOT
mortal isle
#

only when i pass it like your example

#

scratch taht, its working now

violet jungle
#

lol