Announcement

Collapse
No announcement yet.

Google Maps Address Autofill and Colossus

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Google Maps Address Autofill and Colossus

    I have implemented the following directions on a Colossus site, to enable Google Maps Address autofill.

    https://docs.miva.com/readytheme-doc...ls-google-maps

    It works great for address, city, and zipcode. However, when the code changes the select elements for state or country, it doesn't update the associated custom select. I used the inspector in Chrome and I can see that the select elements were changed.

    How do I make the custom select (ul/li tags) also change?

    Screenshot of what I'm seeing is attached. I have set the display and visibility for the select element so it's visible. You can see that the code has changed it to US< but that it still has what I had previously selected (Bolivia)

    Thanks,
    Susan
    Susan Petracco
    NetBlazon

    1.866.400.2444

    _____________________________________________

    Like us on Facebook

    #2
    Hi Susan,

    Are there any errors being reported in the console? If the address autofill triggers the same change as using the default browser autofill, the custom select should update accordingly. If it doesn't, then some customization may need to be performed to accommodate the functionality. Alternately, you could disable the custom layout for these selects by adding the "data-no-custom" attribute to them.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Matt, thanks for the response. There are a couple of warnings about things being deprecated but they are all unrelated to the autofill and custom selects. And none of them are actually errors.

      I would rather not add data-no-custom because it's a nice feature to have.

      Could I use javascript to change the ul/li tags at the same time I change the hidden select input? Would that cause any backend problems?
      Susan Petracco
      NetBlazon

      1.866.400.2444

      _____________________________________________

      Like us on Facebook

      Comment


        #4
        Hi Susan,

        It shouldn't cause any issues.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment

        Working...
        X