how to configure datefield xtype in dialog to just show list of years for selection instead of m/d/Y in aem.
I tried to configure it using the format property, and was able to just get the year when i select any date from datefield.
Is there a way to just show the years.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi krupesh,
Either you have to write custome xtype by using the widget api CQ5 | Widgets API .
Otherwise I think you need only year instead of datefield use select to select the years from the select box and select box take the value dynamically for this you have to write the jsp code to get the year and put in json formet and used in select box take a look of this example:
Dynamic Dialog Data with JSON in CQ5 - Jenikya's Blog
Dynamic options using Javascript in Adobe AEM Dialog | myprogressivelearning
Views
Replies
Total Likes
Hi krupesh,
Either you have to write custome xtype by using the widget api CQ5 | Widgets API .
Otherwise I think you need only year instead of datefield use select to select the years from the select box and select box take the value dynamically for this you have to write the jsp code to get the year and put in json formet and used in select box take a look of this example:
Dynamic Dialog Data with JSON in CQ5 - Jenikya's Blog
Dynamic options using Javascript in Adobe AEM Dialog | myprogressivelearning
Views
Replies
Total Likes