Getting Started | API | Elements | Actions | Validators | Handlers | Configuration Options | Advanced Guides | Troubleshooting | About
The textbox_autocomplete element produces an HTML textbox with built-in autocomplete functionality through the use of server postbacks for selecting and element and typing an element
#textbox_autocomplete { tag=lookup }
autocomplete_enter_event(SearchTerm, Tag) ->
_JsonString = some_search_function(SearchTerm),
autocomplete_select_event({struct, [{<<"id">>,ID }, {<<"value">>, Value}]}, Tag) ->
wf:flash(wf:f("Selected ~p:~p",[ID, Value])).
Core attributes copied from #textbox{}
autocomplete_enter_event
and autocomplete_select_event
functions.