Date Picker not setting to current date | Community
Skip to main content
Level 2
May 19, 2018 2:41 AM UTC
Solved

Date Picker not setting to current date

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

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

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

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
May 30, 2018 3:55 PM UTC

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

2 replies

Mayank_Gandhi
Employee
Jun 27, 2018 8:17 PM UTC

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

Translate
Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
May 30, 2018 3:55 PM UTC

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

Translate