Page 1 of 1

Date extension limitation

Posted: 28 Nov 2023, 12:05
by MegumiSawada
Hi,

When using Date extension, I believe you can enter numbers with no limits.
Is it possible to make 6 digits limitation for it(or 8 digits for yyyymmdd format) ?

Also, when invalid date (e.g. 23/13/01) is entered into this Date extension, I believe the data will be cleared when Enter key pushed.
Is it possible to stop it(not to clear the value as it is)?

I appreciate your kind advice.

Best Regards,
Megumi Sawada

Re: Date extension limitation

Posted: 30 Nov 2023, 22:55
by Dino
Hi Megumi
While I not longer have access to AXES
I believe you can create your own extension
Based on the existing date extension
Then add more restrictions or make changes
To it with some Javascript

Check here
viewtopic.php?f=9&t=243&p=615&hilit=Date+custom#p614

And the respective tutorial in the aXes documentation