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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM Adaptive Forms - Date auto-formatting not working

iabhisheksinha
Level 2
Level 2

Date auto-formatting doesn't work in AEM adaptive forms.

e.g. If I enter date as 01012000 it changes to below format and doesn't validate

Error shown as -

oggmR.png

Configuration done is highlighted as below

ATtlk.png

1 Accepted Solution
Umesh_Sondhi
Correct answer by
Community Advisor
Community Advisor

Hi iabhisheksinha

As per my observation, when you write the display date pattern make sure you are entering the date same as the provided format i.e. MM/DD/YYYY [including '/' as well] in your case. If you enter 12042019 instead of 12/04/2019 [As mentioned in above pattern] then it will be counted as invalid.

Also, if you want to make 12042019 format working, then you have to provide pattern in the format i.e MMDDYYYY or for an alternative you can add custom java script code that will convert the entered number in the date pattern format and output the result.

Hope it helps!

View solution in original post

1 Reply
Umesh_Sondhi
Correct answer by
Community Advisor
Community Advisor

Hi iabhisheksinha

As per my observation, when you write the display date pattern make sure you are entering the date same as the provided format i.e. MM/DD/YYYY [including '/' as well] in your case. If you enter 12042019 instead of 12/04/2019 [As mentioned in above pattern] then it will be counted as invalid.

Also, if you want to make 12042019 format working, then you have to provide pattern in the format i.e MMDDYYYY or for an alternative you can add custom java script code that will convert the entered number in the date pattern format and output the result.

Hope it helps!

View solution in original post