You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
form.validate on submit() evaluates to False when choices in SelectField is a list of values only. The same form validation evaluates to True when using (value, label) tuples as used with version 2.2.1
The SelectField() is rendered properly in the HTML form and its value can be accessed with form.language.data but form.validate_on_submit() still evaluates to False.
Expected Behavior
form.validate on submit() to evaluate to True when choices in SelectField is a list of values only as well.
Environment
Python version: 3.8.2
Flask-wtf version: 0.14.3
wtforms version: 2.3.1
The text was updated successfully, but these errors were encountered:
Actual Behavior
form.validate on submit()
evaluates toFalse
whenchoices
inSelectField
is a list of values only. The same form validation evaluates toTrue
when using(value, label)
tuples as used with version 2.2.1The
SelectField()
is rendered properly in the HTML form and its value can be accessed withform.language.data
butform.validate_on_submit()
still evaluates toFalse
.Expected Behavior
form.validate on submit()
to evaluate toTrue
whenchoices
inSelectField
is a list of values only as well.Environment
The text was updated successfully, but these errors were encountered: