I have added a "granite/ui/components/coral/foundation/form/datepicker" fields to all pages in my website.
Whenever a new page is created, I want to default this field to the current date.
How can I achieve this?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @dylanmccurry , you can write a custom client library which targets the author environment.
From there, you can write some custom javascript to check if the datefield is empty. and if it is, you can write today's date into the input field. Some example code can be found here -> https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-date-picker-libs-grani...
Hi @dylanmccurry , you can write a custom client library which targets the author environment.
From there, you can write some custom javascript to check if the datefield is empty. and if it is, you can write today's date into the input field. Some example code can be found here -> https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-date-picker-libs-grani...