Contact Form 7 - Google Places API Plugin
WordPress.org plugin solution to adding a places text field to Contact Form 7, that "just works".
This plugin adds a new tag type for the Contact Form 7 plugin. This new tag type labeled "Places Text Field" will be present in the Contact Form 7 editor. Using it in your form will add a text input field, that triggers the Google Places API once the user has made a character entry into the field. As the user types, they will see a dropdown list of returned place predictions for them to select.
- Contact Form 7 plugin.
- API key from Google.
- A sense of humor.
You will need to install this manually:
- Unzip the archive and put the 'contact-form-7-google-places-api' folder into your plugins folder (/wp-content/plugins/).
- Activate the plugin from the Plugins menu.
- In your admin/dashboard menu scroll to the bottom and select 'Google Places API'.
- Input what page you want to use the Google API on, and input your API Key you recieved from Google.
- Go to Contact->Add New and you can now create a form with the 'Places Text Field' tag type.
- When using the 'Places Text Field' tag type — In the 'Form-tag Generator: Places Text Field' you must enter "autocomplete" without quotes as the value for the 'Id attribute' field.
Frequently Asked Questions
Will this work with any contact form plugin?
No, this plugin is specifically for Contact Form 7, which is also free.
Do I really need to create my own Google API key?
Yes, as of 2016 Google has made it a requirement, that any application using any of their Google Maps APIs must now have an API key. So, in order for the Google Places API plugin to work you will need to create your own API key.
Do I really need a sense of humor?
No, not really, but it couldn't hurt.
- Update Validation Filter
- Start version.