How we can restrict the length for the year by input?

Hi Team,

In the DhtmlxCalender, i need to enter only four numbers(length) as a input to the year field.Now it accepts a infinite length but output is NaN in year field and undefined in the month field.



So I need to enter the valid 4 numbers(length) in the year field and get the corresponding calender will show in the popup.It should be helpful if you explain it with sample.



Thanks in advance.



Regards,

Ashok



The native “link to input” functionality, will not allow such usecase, but you can use custom code to init calendar, in such case you can implement any custom rules before value of input will be used as calendars date.

1211289599.zip (21.2 KB)