I have a very simple form, with 2 fields (one DateTime and one Date). I am trying to get them to render with a picker for each.
from flask.ext.wtf import Form
import wtforms as wtf
import wtforms.fields.html5 as html5
class CaseForm(Form):
foo = html5.DateTimeField("Date Time Sample")
bar = html5.DateField("Date Time Sample")
The field foo does not render with a picker widget, but bar does. I can see from the code for the html5 fields that there is a widget associated with the DateTimeField.
Any ideas on how to render a picker for DateTime fields
I had the same problem,after much frustration I ended up using DateTimeLocalField
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With