Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
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.
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...
View solution in original post
Views
Likes
Replies