newism / craft3-fields

Address, telephone, email, embed and gender fields for CraftCMS 3.x
Other
54 stars 16 forks source link

"Request missing required body param" after selecting address suggestion #42

Closed malamoet closed 4 years ago

malamoet commented 5 years ago

Hi, i'm having troubles with the address field.

After selecting an address suggestion from the dropdown nothing happens (the address part fields aren't showing).

schermafbeelding 2018-12-02 om 12 21 12

The request that happens on selecting a location is throwing a 400 error:

schermafbeelding 2018-12-02 om 12 24 03

schermafbeelding 2018-12-02 om 12 22 10

Any idea what i'm doing wrong or what's going on?

Thx in advance

leevigraham commented 5 years ago

Hmm that's a weird one… which version of Craft are you using?

malamoet commented 5 years ago

I think i've figured out what's causing this error. I'm trying to use the NSM address field on a global set (general company stuff) and that seems to be the problem. When i use the field on a section it works fine. It would be handy if the address field also worked well with globals... Could anybody look in to this?

Thx

leevigraham commented 5 years ago

@malamoet Thanks for nailing down the issue. I'll take a look… I'm pretty snowed under with work leading up to the holidays so it might be a toward the end of the week. Should be an easy fix.

leevigraham commented 5 years ago

@malamoet I took a look at this and it's going to be a bit more complicated than I thought. I cheated a bit and used some balck magic to change the field when the country changes. I'll look at another option.

leevigraham commented 4 years ago

Fixed by #59