Date Picker on a Form | Community
Skip to main content
Krishna_C
Level 3
October 16, 2015
Solved

Date Picker on a Form

  • October 16, 2015
  • 2 replies
  • 1776 views

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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ove_Lindström

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

2 replies

Ove_LindströmAccepted solution
Level 6
October 16, 2015

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

Krishna_C
Krishna_CAuthor
Level 3
October 16, 2015

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