Create tokens related to the drop downs by populating searches and you can call the token I side tags.
Docs: search for token usage in splunk docs.
Example, let's say I have a token called $username$ defined. I can call that token from the html code.
Hope this helps,