Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

195
Views
Firing a form submit when completion is clicked on places autocomplete

I've been trying to find how to fire a form submission when a completion is clicked with places autocomplete, but I cannot figure this out.

I have a custom method placeChanged which I'm calling with

this.autocomplete.addListener('place_changed', this.placeChanged)

and the method is as follows

placeChanged() {
    this.place = this.autocomplete.getPlace()
    const addressComponents = this.place.address_components

    if (addressComponents !== undefined) {
        const formattedAddress = this.formatAddressComponents(addressComponents)

        this.setAddressComponents(formattedAddress)
    }

    if (this.place.geometry !== undefined) {
        this.setGeometry(this.place.geometry)
    }
}

the form will submit upon clicking enter, but I would like it to submit whenever I choose a completion form the list so that I could get rid of the 'submit' button on my form. How can I achieve this? The docs doesn't cover this at all.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!