Need help with Map API from database
Hello!
I'm basically combining these two tutorials:
This to-do list one
AND
This map one.
So I'm adding addresses to a database list, and when I click on the address from the list, a pop-up comes up and asks if you want to Show on Map or Delete the item. Everything is functional except one thing -- I can't get the "Input" on top of the window to have the address text of the list item I've clicked on. I tried connecting the "address" column of the database to the "input" text in the list_service, but it doesn't update when I click a different item... it'll stay only on the address of the first item. Hopefully this makes sense, if not I'll try to explain further or make a video demo.
To boil it down, I want to match the list item text to an input (make it already say the text that the list item contains) in a popup so I can use that input text to "show on map" like the tutorial explains.
How should I go about doing this? If I have to use javascript, that's fine too. I was considering variables and changing the values but I can't figure it out. Thanks in advance.