PDA

View Full Version : about disabledDays and validation



Benny.ew
10 Dec 2013, 10:33 PM
I use Extjs 4.2.1.

here is my problem, I don't know is it a bug or not.

this is part of my code:
.....
{
fieldLabel: 'Accepted Date',

name: 'acceptedDate',

xtype: 'datefield',

disabledDays: [0, 6],

format:'d F Y',

editable:false,

submitFormat:'Y/m/d'
}
....

I want to submit 22 November 2013 and today is 22 December 2013.

today is sunday of course it should not be checked as valid date, but when I enter 22 November 2013 (friday and this should be checked as valid date), but I couldn't submit the form because it said that it isn't valid date.

thanks before.

Kevin Jackson
16 Dec 2013, 3:01 PM
I checked the code above and it works properly. I'm unclear what you mean about 22 December. I would think the issue must be in your validation code. Did you enter the date or use the datepicker? If you entered the text? Did it fail that way and work when choosing the date?

Benny.ew
18 Dec 2013, 12:04 AM
I mean the date of my system is 22 december 2013, but i want to input 22 November 2013 to may app, it is mark as invalid date to input. I did not use custom validation rule.