This is a question upon the use of wtforms SelectField.
wtforms SelectField
Once the form submitted, I wish to extract selected text.
I have the following form:
Another option is to get the index from form.hour.data and call it like this:
index = int(form.hour.data) form.hour.choices[index][1]