You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing around with creating a custom field that lets a user search for an address, it uses the google auto complete API to suggest matches, and when the user selects a result it auto-populates the related address fields.
Are there any existing methods available that would let me set the value of a various fields outside the normal flow?
defhandle_event("select",%{"value"=>place_id},socket)doaddress_details=get_address_details(place_id)# set address related fields{:noreply,socket}end
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been playing around with creating a custom field that lets a user search for an address, it uses the google auto complete API to suggest matches, and when the user selects a result it auto-populates the related address fields.
Are there any existing methods available that would let me set the value of a various fields outside the normal flow?
Beta Was this translation helpful? Give feedback.
All reactions