All I can say is that the datepicker datatype has dramatically changed since the umbraco v4.5+ version, so not sure if it can be fixed easily. I'm pretty sure it'll be some kind of javascript issue/reference. Can you check with Firefox/Firebug to see whether there's js errors and what those errors are?
I had similar issue with datepicker and using it with contour field. The way i got round this was to make the contour field a text field and using jquery ui datepicker http://jqueryui.com/demos/datepicker/ you could do something similar for doc2form?
lets say you have in your document type that is being used by doc2form field called date of birth with alias dateOfBirth then in doc2form generated html you will have something like
that will target the textbox and make it a jquery ui datepicker. the button image i,e iconCalendar.gif you can download from jquery ui site or create your own.
not sure if there is time picker although might be worth checking the jquery ui documentation for datepicker. As far as i am aware there are no licensing issues again check the jquery ui site.
Just had this issue myself and did a bit of investigation. It seems I got it working by directly referencing the jQuery.js/jQueryUI.js files from my template. Also note that the default behavior has changed - now you have to click the text field (using default behavior at least) to see the datepicker control.
Doc2form-datepicker?
I got everything to work fine in doc2form, but the picker in datepicker on form donĀ“t show up? Just a label?!
Anyone??
Maybe I should say that I use Umbraco 4.5.2
Plz anyone, I really need it for a customer
All I can say is that the datepicker datatype has dramatically changed since the umbraco v4.5+ version, so not sure if it can be fixed easily. I'm pretty sure it'll be some kind of javascript issue/reference. Can you check with Firefox/Firebug to see whether there's js errors and what those errors are?
Looking forward to your info.
Cheers,
/Dirk
kaj,
I had similar issue with datepicker and using it with contour field. The way i got round this was to make the contour field a text field and using jquery ui datepicker http://jqueryui.com/demos/datepicker/ you could do something similar for doc2form?
Regards
Ismail
Wow Ismail! Pleece cant you explain how i do to get it like this? Pleece :-)
Its beutiful! :D
lets say you have in your document type that is being used by doc2form field called date of birth with alias dateOfBirth then in doc2form generated html you will have something like
in your template you need
that will target the textbox and make it a jquery ui datepicker. the button image i,e iconCalendar.gif you can download from jquery ui site or create your own.
Regards
Ismail
@Dirk I got 1 wrong:
kaj,
not sure if there is time picker although might be worth checking the jquery ui documentation for datepicker. As far as i am aware there are no licensing issues again check the jquery ui site.
Regards
Ismail
Just had this issue myself and did a bit of investigation. It seems I got it working by directly referencing the jQuery.js/jQueryUI.js files from my template. Also note that the default behavior has changed - now you have to click the text field (using default behavior at least) to see the datepicker control.
>Tommy
For the record, I got it working by adding this:
<link rel="stylesheet" href="/umbraco_client/DateTimePicker/datetimepicker.css" type="text/css">
<script type="text/javascript" LANGUAGE="JavaScript" src="/umbraco_client/ui/jquery.js"></script>
<script type="text/javascript" LANGUAGE="JavaScript" src="/umbraco_client/ui/jqueryui.js"></script>
<script type="text/javascript" LANGUAGE="JavaScript" src="/umbraco_client/DateTimePicker/umbDateTimePicker.js"></script>
>Tommy
Does Doc2Form support new schema in 4.5.2?
It seems to be working nicely with the new schema - the only issue I've experienced so far is the datepicker issue mentioned above,
I had this line in /umbraco/editContent.aspx
<script type="text/javascript" src="../../scripts/jquery-1.7.1.min.js"></script>
changing it to
<!--script type="text/javascript" src="../../scripts/jquery-1.7.1.min.js"></script-->
did the trick.
I was able to get the datepicker to show up, but the timepicker portion is missing. How can I get that to work?
Looks like you cannot have time as well so take a look at http://stackoverflow.com/questions/1028409/jquery-datepicker-and-timepicker-for-same-input-field-to-popup-one-after-another may need another jquery plugin??
Turns out it was easy, just had to include the timepicker script file. Odd, since I could swear I tried that the day before. Anyhow, it works now.
Try my solution at http://our.umbraco.org/forum/developers/extending-umbraco/8268-Change-date-picker-format-in-Umbraco?p=1#comment166799
is working on a reply...