Autocomplete field is not pulling addresses

Created on 3 July 2024, 6 months ago
Updated 24 July 2024, 5 months ago

Problem/Motivation

I am using Drupal 10.2.5. I have a text field which uses the Google Places Autocomplete widget. It used to work fine, but something happened.

I have this module configured using the Key module. In Google API, I have a key set up with restrictions to IP addresses. Previously, I had no restrictions. I believe all of the necessary Google API services are enabled. For the key itself, I'm using the "Authentication" type and putting the Google key in the value field.

I don't see any log reports about any failures. Google is not pulling any data for the Places API. There seems to be a connection issue. I may try creating another API key in Google. This helped with the recaptcha modules.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

2.1

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States rraney

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

Comments & Activities

  • Issue created by @rraney
  • πŸ‡ΊπŸ‡ΈUnited States rraney

    There are no errors in Console. I also don't see any kind of connection to Google in "Sources" when I inspect the page. When I inspect the Elements, I don't see any evidence of Map API code, scripts or anything. It's like the widget isn't loading into the content form.

    We use a Google Places Autocomplete widget for a text field in a content type. In the content form, nothing happens when we start typing.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    I'm considering just attempting to create my own module using this as a model.
    https://jsfiddle.net/u43pj69g/

Production build 0.71.5 2024