We've moved discussions to Discord

Make flatpickr input required

Tom Iwaniec
Flatpickr is convenient for accepting date/time input. Is there any way to make the input required on a form? Adding required="required" has no effect.
Chris Oliver
Hey Tom,

Good question. Flatpickr is generating HTML and using a hidden field to actually submit the data, so it's not going to work like a normal field. 

My guess is you'll have to add your own validation on the form with Javascript.

Have you checked the Flatpickr docs to see if they support anything like that? 
Notifications
You’re not receiving notifications from this thread.