All things Shopify and commerce
Hi all
We are trying to build a drop down list of addresses using the
Solved! Go to the solution
This is an accepted solution.
It sounds like your issue is with dynamically updating the dropdown list when a user clicks on a drill-down suggestion. Since purchase.address-autocomplete.format-suggestion works but doesn't update the UI, try using Shopify's API response handling with purchase.address-autocomplete.suggest to dynamically inject the new results. Ensure that your API returns formattedAddress for each level of the drill-down. If Shopify’s built-in extension limits this behavior, consider using a custom JavaScript event listener to capture the drill-down click and trigger a new API request to update the dropdown dynamically.
This is an accepted solution.
It sounds like your issue is with dynamically updating the dropdown list when a user clicks on a drill-down suggestion. Since purchase.address-autocomplete.format-suggestion works but doesn't update the UI, try using Shopify's API response handling with purchase.address-autocomplete.suggest to dynamically inject the new results. Ensure that your API returns formattedAddress for each level of the drill-down. If Shopify’s built-in extension limits this behavior, consider using a custom JavaScript event listener to capture the drill-down click and trigger a new API request to update the dropdown dynamically.
Thanks Richard! Apologies for delay in reply, with your help we got it done.
Cheers
Gerry
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025