I have a simple form panel and I would like to indicate that one or more of the fields its required. I set the allowBlank property to false to not allow for blanks but that does not get validated when the form panel is rendered. I.E. I have to click in the text field and then click out to blur the field and then I can see that blank is invalid. What is the proper way to show the user that fields are required (cannot be blank)?
I am using 3.2.1. Is this a bug?
Code:
new Ext.form.FormPanel({
renderTo: 'test',
title: 'My Title',
monitorValid: true,
items: [{
xtype: 'textfield',
fieldLabel: 'Field',
allowBlank: false
}]
});