score:0

Accepted answer

Your code is mostly correct, except:

  1. Add list attribute to @inputText arguments:

    @inputText(searchForm("langCode"), '_label -> "Language", 'list -> "langCodeDatalist")

  2. Make sure id used for datalist is different from the one used for the input box:

    < datalist id="langCodeDatalist">

Once I made these changes, it worked. Check the source code to make sure @lang.langCode is getting pasted correctly.


Related Query

More Query from same tag