Send selected value from datalist

Hi! as the title indicates i want to send the selected value from a datalist when the user selects one of the options, all this using the template node and not the dropdown node, because with the datalist (and an input) the user can filter trought the options while typing.

The problem is that it doesn't send back the selected value, so what am i doing wrong?

Pastebin to what i have so far: