Expand my Community achievements bar.

SOLVED

Date Picker on a Form

Avatar

Level 4

Hi,

 
I need a date picker component on my form. I couldnt find any default date picker for form provided by CQ.
But I found some datePicker related code in "/libs/granite/ui/components/foundation/form/datepicker" .It doesn't look like a component.
 
Can Someone suggest me on how to use this date picker provided on a form.
 
Regards,
Kishna
1 Accepted Solution

Avatar

Correct answer by
Level 6

If it is in an end user entry form, I would use something like the jQuery UI Datepicker (http://jqueryui.com/datepicker/).

In the author environment, you can use the the DateField that automatically uses the DatePicker widget. See http://dev.day.com/docs/en/cq/current/widgets-api/index.html.

 

/Ove

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

If it is in an end user entry form, I would use something like the jQuery UI Datepicker (http://jqueryui.com/datepicker/).

In the author environment, you can use the the DateField that automatically uses the DatePicker widget. See http://dev.day.com/docs/en/cq/current/widgets-api/index.html.

 

/Ove

Avatar

Level 4

Hi Ove,

Thanks for the reply. Its an end user form.I am restricted to use a component rather than a directly using a jquery.I need some thing similar to a form text field .Any help on this ?

 

Krishna