The datepicker is actually a built-in custom field type. This means you can overwrite it in the fuel/application/config/custom_fields.php configuration: // date field
$fields['date'] = array(
'css' => 'my_datepicker', // would exists at fuel/assets/css/my_datepicker.css
'js' => array('jquery.datepicker.min'), // would exists at fuel/assets/js/jquery.datepicker.min.css
'css_class' => 'datepicker', // CSS class you want to automatically associate with the field which you can subsequently use in your "js_function" below
'js_function' => 'fuel.fields.datetime_field',
); More can be found on custom field types here: http://docs.getfuelcms.com/general/forms#association_parameters
For an example of what is in the js_function, you can look here: fuel/modules/fuel/assets/js/fuel/custom_fields.js
Comments
// date field $fields['date'] = array( 'css' => 'my_datepicker', // would exists at fuel/assets/css/my_datepicker.css 'js' => array('jquery.datepicker.min'), // would exists at fuel/assets/js/jquery.datepicker.min.css 'css_class' => 'datepicker', // CSS class you want to automatically associate with the field which you can subsequently use in your "js_function" below 'js_function' => 'fuel.fields.datetime_field', );
More can be found on custom field types here:
http://docs.getfuelcms.com/general/forms#association_parameters
For an example of what is in the js_function, you can look here:
fuel/modules/fuel/assets/js/fuel/custom_fields.js