Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

set only years packed date

Avatar

Level 5

Hi All.

Does it possible to restriction picked date in date field that only years will display. How it to do If that is possible?

AEM_Years.PNG

Thanks

3 Replies

Avatar

Employee

Are you referring to Coral Datepicker ? Could not see anything in the documentation.

Documentation | CoralUI

Avatar

Employee Advisor

You can overlay "/libs/granite/ui/components/coral/foundation/form/datepicker/render.jsp" and change it as per your business need as this contains the logic for the rendering of datetpicker.

Avatar

Community Advisor

Hi,

Not possible out the box, Only a few types are available for date picker.

  1. date
  2. datetime
  3. time


Arun Patidar