Autocomplete Menu (HTML) - Passing Variables to KM?

here's an example of a HTML prompt

and how to pass it to KM using a Switch action: