Hi All...
I have fields placed around my page using the following:
Code:
var weekNumField = new Ext.form.NumberField({
id: 'weeklyNum-field',
allowDecimals: false,
maxValue: 52,
minValue: 1,
allowNegative: false,
allowBlank: false,
renderTo:'weeklyNum',
name:'RecurEvery',
value: '1',
width: 25,
disabled: true
});
And the target for these fields are within a label in a form panel:
Code:
{
xtype:'label',
cls:'x-form-item',
html:'Recur every <span id="weeklyNum"></span> week(s) on:'
}
When I submit the form, the field is not checked for validity.
If the field is invalid (by simply clicking into the field and leaving it empty) the form will still submit.
Do I need to check for this manually in the listener for the submit button? Or is there some way to bind this field to the form?
Thanks for the help!!