Date Picker not setting to current date

Avatar

Avatar
Validate 1
Level 1
jaswanth_reddyn
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
jaswanth_reddyn
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
jaswanth_reddyn
Level 1

18-05-2018

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

30-05-2018

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

sample.png

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

27-06-2018

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