oomphinc / gravity-forms-google-places

Adds a location field type that integrates with the Google Places API.
13 stars 15 forks source link

geo code parameters are not uploaded to the fields #22

Open Alihassan87613 opened 3 years ago

Alihassan87613 commented 3 years ago

http://growmc.org/gardening-form/

Here you can have look, Fields if i manuall enter the "geo-complete" class in fields it still doesn't work. I believe there is issue.

jQuery(function($) {

// set up geo-complete fields
if ($.fn.geocomplete) {
    $('input.geo-complete, input.lat, input.lng').each(function(){
        debugger;
        $el = $(this);
        $el.geocomplete({
            details: '#' + $el.closest('form').attr('id'),
            detailsAttribute: 'data-geo-' + $el.data('field-id'),
        });
    });
}

});

And Also 100% sure for following the requirements.