ThierryC
08-04-2009, 10:05 AM
i have a form with a datefield
This is the definition :
items: [{xtype: 'datefield',
id: 'DftDate',
name: 'DftDate',
format: 'Y-m-d',
fieldLabel: 'Test default date',
value: Date()
}, ...
When showing the form i'd like to have the field already showing the current date as a default.
But with adding the parameter value: Date() , nothing changes and the form is still shown with a blank datefield.
what is the best way for achieving this.
This is the definition :
items: [{xtype: 'datefield',
id: 'DftDate',
name: 'DftDate',
format: 'Y-m-d',
fieldLabel: 'Test default date',
value: Date()
}, ...
When showing the form i'd like to have the field already showing the current date as a default.
But with adding the parameter value: Date() , nothing changes and the form is still shown with a blank datefield.
what is the best way for achieving this.