I'd like to have an InputField with "dynamic" word autocompletion from a list : if I start to type some letters in the field I want the autocomplete suggestion updated. To do that I use the following code :
ListOfName = {"Steve", "Stan"}
InputField[Dynamic[f], String, ContinuousAction -> True, FieldCompletionFunction -> (Select[ListOfName, StringStartsQ[ToString[f], IgnoreCase -> True]] &)]
It almost works but "one step too late", the ContinuousAction option seems to take into account the last letter but one instead of last. Example : if I type "Ste" in the field the FieldCompletionFunction suggest "Steve" and "Stan". I need to add the "v" (so "Stev" to have only "Steve" suggested.
Any idea to solve this ?
Thank You !