No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Google Autocomplete VS Q-Select

    CLI
    2
    3
    320
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vijay last edited by vijay

      Hey everyone,

      I have to implement autocomplete feature to my address form. Whenever user types in the name field,

      1. Need to check if the data is already available from my DB. If so I need to use the Q-Select to show the available addresses(completed this). Please refer below.
        68fe7eb6-51c9-42cd-a757-14f59ca6ed6a-image.png
      2. If NO DATA returned from API, I need to call Google API to get the address location which user has typed. Please refer below.
        6e2754e9-9851-452f-ae76-495ef10951f2-image.png

      Since Google maps API primarily uses the <input> tag for showing the results, its giving me the following error since I am trying to achieve this in Q-select tag.
      e6d7f212-106d-4d6c-96f5-2ccb6dfadfeb-image.png
      I need to have both this feature in a single input field.

      If someone has any thoughts / ideas on this, please let me know. Thanks!

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @vijay last edited by

        @vijay take a look at this thread, seem related to yours https://forum.quasar-framework.org/topic/7541/google-places-autocomplete-using-q-input-not-working-but-works-with-input?_=1615828151585.

        V 1 Reply Last reply Reply Quote 0
        • V
          vijay @metalsadman last edited by vijay

          @metalsadman yayyy!!! It worked.

          bfd4e5e9-5faa-400a-8298-d0c3f3e0fdd4-image.png

          I targeted the inner Input tag element and passed it in the request to Google. Voila its working!!! Now I can make it work alongside with q-select tag too. Thankyou very much. Damn QUASAR is simply WOW!!!

          1 Reply Last reply Reply Quote 1
          • First post
            Last post