Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Date Picker not setting to current date

jaswanth_reddyn
Level 2
Level 2

Hello all,

             I am facing an issue with Date field in my form. I am using the AEM 6.2 version. I have a date field and it has to current date when the form initialize.

I tried in two ways like below

Date.JPG

Date_Picker.JPG

After running this I didn't get the current date on the field. Anyone can help me on this. Please find the output like below

Output.JPG

It was showing only the placeholder but not the current date.

Thanks in advance.

1 Accepted Solution
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

Try putting the script on the panel initialize as shown below :

sample.png

View solution in original post

2 Replies
Mayank_Gandhi
Correct answer by
Community Advisor
Community Advisor

Try putting the script on the panel initialize as shown below :

sample.png

View solution in original post

Mayank_Gandhi
Community Advisor
Community Advisor

Did you get this working, Jaswanth? Let us know if you need any help further.