Embedding a date picker
It's possible for Bootstrap Datepicker to embed a picker right on the page without attaching it to particular input field.
In order to validate the selected date, firstly we need create a hidden input to keep the selected date:
We then add validator rules for the
selectedDate field, don't forget to set excluded: false to the field (because it's hidden so it will be ignored by default):
Finally, after choosing a date, you need to set the selected date to the hidden field, and revalidate it:
You can try it with the following live form: