Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

I need a button to display the date and time

Avatar

Level 3

I want the date and time to display in a textfield. I am thinking the best way to go about this is to have a hidden button in the field, so that when the user clicks in the field the date and time will automatically appear. I need help with some code (not really sure of how the code should look). Should the code go in the click or initialize event?

Thanks for your help

1 Reply