This is not an extra but an external date picker that just sits well.
After searching around on the forums I couldn't find an easy to use DatePicker to go with Formit.
I tried quite a few date pickers but I either couldn't get them to function with formit or get the css to display them nicely.
I just want to share an easy to use 'Datepicker' that functions very well with Formit.
This date picker can be found here:
http://mugifly.github.io/jquery-simple-datetimepicker/
It can be configured very easily, I disabled the time picker as it was not required for what I wanted.
Required files:
jquery.simple-dtpicker.js
jquery.simple-dtpicker.css
Here's the code I placed in a chunk;
<h4>Select Collection Date</h4>
<div class="datepicker">[[!DatePicker]]<input type="text" id="datepicker" name="datepicker" value="">
<script type="text/javascript">
$(function(){
$('*[name=datepicker]').appendDtpicker({
"dateOnly": true,
"dateFormat": "DD-MM-YYYY",
"futureOnly": true
});
});
</script>
Very easy to use & implement.
There are many configuration code examples on their website, the above was just the functionality I required
fyi.....I have no affiliation whatsoever with this datepicker.
Enjoy