AmmoCan / contact-form-7-google-places-api

WordPress.org plugin solution to adding a places text field to Contact Form 7, that "just works".
GNU General Public License v3.0
2 stars 2 forks source link

2 fields on the same form #4

Open azedgetech opened 5 years ago

azedgetech commented 5 years ago

Hi there - not sure if this is still being monitored or not, but just in case...

The Places Text Field works great for one field on a form, but I am needing to have the visitor input a Starting Address and a Destination Address.

I've tried using different ID's for the fields, but since the autocomplete functionality only works with "ID:autocomplete", that means that only one field will work on the form. Any work-around?

AmmoCan commented 4 years ago

Sorry @azedgetech I haven't touched this in a while, and I'm not currently developing for WordPress. This was designed and developed for a particular use-case. Just off my head, to get the functionality you desire I believe it would require a completely different Google Maps API. This is using the Places API and I believe you're going to want to use the Routes API.