Address multi field input

I’ve created an address field on my vendor registration attributes but it’s a textarea field type which isn’t totally accurate when submitted. Am I doing something wrong? How can I get standard address form fields like address 1, address 2, city, post code etc.

Hi @JamesG,

Welcome to the community! :slight_smile:

I’m not HivePress staff, just curious myself and chiming in!

Like you, I opted for the text area field, but after reading your post and describing each part - a text field for each item might be a better option.

There’s also the geolocation extension that adds the ‘Location’ field, but it depends on the use-case and how prominent you want the address.

I’m curious what @andrii (staff) recommends, as I’ve recently added this option to some of my listings, as well.

I’m sure we’ll hear back soon!

Cheers,
Chris :victory_hand:

Thanks for the warm welcome Chris :wink: Yeah I have the google maps API plugged in but it just isn’t working as expected. I am going to try single line text rather and see if things improve while the devs hopefully give me a solution.

It’s good to have you in the community, James! :slight_smile:

A lot of people seem to run into issues with using Google for the geolocation part, but if you switch over and use MapBox you should find it’s much easier to set up and get working. I personally use that option myself and it’s much more straightforward, and plug and play.

I hope this helps!

Cheers,
Chris :victory_hand:

Hi,

We recommend using the built-in Location field from the Geolocation extension. After configuring the API, you will automatically pull a location from the drop-down menu after you enter some data. If you need other functionality, this will require custom implementation.

Thanks for the feedback. I’ve tried it with mapbox now and its the same result where the result doesn’t finish correctly when typing an address exactly. It changes the result to the general area not the whole address. Will monitor how the users find it hopefully its not too confusing.

Just a follow up here. I found a setting “Hide the exact address” and turning that off seems to have fixed it thanks.

1 Like