How do I set up Bring Postal Code?

Created on 20 March 2022, over 2 years ago
Updated 29 October 2023, about 1 year ago

According to the project page, this should be incredible easy to set up:

This module can sit on top of any form. Node, taxonomy, order in checkout, custom form, anything. Just configure a set of selectors for where the data is to be filled in, plus a form ID, and you are set to go.

I have created a content type named "Place". It has a two plain text fields named "postalcode" and "place".

The form id for the create node form is "node-place-form". I've put that into the "Attach to forms" field in the configuration of the "Bring Postcode Lookup Form".

In the field "Input / output selectors" I've put:

input[data-drupal-selector="edit-field-postalcode-0-value"]|select[data-drupal-selector="edit-field-place-0-value"]

I''ve selected "Norway" as the default country.

I'd kept the Min. trigger length at the default (4).

When I create a "Place", I expected that when I type valid a 4 digit Norwegian postal code in the field "postalcode", the module would look it up and automatically populate the field "place".

However, nothing happens. There isn't even an error message.

So I think that I've not set it up correctly. Please expand the documentation about how to configure this module to cover the bits I've missed or misunderstood.

💬 Support request
Status

Active

Version

1.2

Component

Documentation

Created by

🇳🇴Norway gisle Norway

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024