Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM How to disable auto-complete from address?

This topic contains 0 replies, has 1 voice, and was last updated by  idealeru 2 years, 11 months ago.

  • Author
    Posts
  • #100792

    idealeru
    Participant

    How to disable that function?
    We do not need such taxonomies like county, area/neighborhood. Moreover that function automatically creates a new taxonomies that doesn’t match our language. We want manually to keep them in actual.

    ———

    ANSWER

    In order to disable the auto complete from the address, you will need to go to js/google_js/google_map_submit.js and remove the following code from line 210:

    autocomplete = new google.maps.places.Autocomplete(
    /** @type {HTMLInputElement} */(document.getElementById(‘property_address’)),
    { types: [‘geocode’],
    “partial_match” : true
    }
    );
    // When the user selects an address from the dropdown,
    // populate the address fields in the form.
    google.maps.event.addListener(autocomplete, ‘place_changed’, function() {
    var place = autocomplete.getPlace();
    fillInAddress(place);
    });

You must be logged in to reply to this topic.