I am looking for a mixture between SelectField and Textfield of wtforms where it is possible to input a String which is validated and autocompleted from a given list of options, like the choice argument in SearchField.
Currently I have this implementation, which is just a dropdown menu, but i want the user to be able to type any string. While typing the string all matching options should be shown in a dropdown list like in a google search bar.
possible_names = {0:'hans', 1:'sepp', 3:'max'}
class ReusableForm(Form):
name = SelectField("Enter a Name",
choices=[(uuid, name) for uuid, name in possible_names.items()],
validators=[validators.InputRequired()])